Re: [PATCH 1/2] blk-integrity: add rq_integrity_payload_size helper

From: hch@xxxxxx
Date: Wed Apr 12 2023 - 02:53:14 EST


> + if (WARN_ON_ONCE(queue_max_integrity_segments(rq->q) > 1))
> + return 0;

This should work for multiple segments as well.