Re: [PATCH v2] block: only fail dma-buf bios that need block layer PI
From: Jens Axboe
Date: Tue Nov 03 2026 - 10:06:27 EST
On Thu, 29 Oct 2026 15:58:21 +0000, Kyle Bader wrote:
> All dma-buf (P2P) I/O to a device with integrity data is rejected
> today, at registration and in blk_mq_submit_bio(). Only a bio for which
> the block layer generates or verifies PI needs that. The block layer
> then walks the bio_vecs, and a dma-buf bio has none.
>
> Reject only those bios, and remove the check at registration. Then a
> submitter that attaches its own PI, for example with
> IORING_RW_ATTR_FLAG_PI, can do dma-buf I/O to such a device.
>
> [...]
Applied, thanks!
[1/1] block: only fail dma-buf bios that need block layer PI
commit: d734b6433b2fd248bc25a2ea1fa60c34b40ba15c
Best regards,
--
Jens Axboe