summaryrefslogtreecommitdiff
path: root/scripts/livepatch/init.c
diff options
context:
space:
mode:
authorKyle Bader <kbader@ibm.com>2026-10-29 15:58:21 +0000
committerJens Axboe <axboe@kernel.dk>2026-11-03 07:08:50 -0700
commitd734b6433b2fd248bc25a2ea1fa60c34b40ba15c (patch)
tree74f78e906e013bb348169f47394d244f04b87b48 /scripts/livepatch/init.c
parent7e3801d12ebabaa3db6e2685ccc80b6e6f6d1ff7 (diff)
block: only fail dma-buf bios that need block layer PI
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. Link: https://lore.kernel.org/all/bbb87d6b-b7a3-487a-8be4-27f3f9ce4a1b@samsung.com/ Assisted-by: LLM Reviewed-by: Anuj Gupta <anuj20.g@samsung.com> Signed-off-by: Kyle Bader <kbader@ibm.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://patch.msgid.link/20261029155821.2983229-1-kbader@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/livepatch/init.c')
0 files changed, 0 insertions, 0 deletions