]> www.infradead.org Git - nvme.git/commit
block: remove bio_add_pc_page
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Jan 2025 07:33:57 +0000 (08:33 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 4 Jan 2025 22:27:35 +0000 (15:27 -0700)
commit6aeb4f836480617be472de767c4cb09c1060a067
tree3c8f7a90d542898614b1fbaa7b6f407045166e7c
parentc2398e6d5f16e15598d3a37e17107fea477e3f91
block: remove bio_add_pc_page

Lift bio_split_rw_at into blk_rq_append_bio so that it validates the
hardware limits.  With this all passthrough callers can simply add
bio_add_page to build the bio and delay checking for exceeding of limits
to this point instead of doing it for each page.

While this looks like adding a new expensive loop over all bio_vecs,
blk_rq_append_bio is already doing that just to counter the number of
segments.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Link: https://lore.kernel.org/r/20250103073417.459715-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk-map.c
block/blk.h
drivers/nvme/target/passthru.c
drivers/nvme/target/zns.c
drivers/target/target_core_pscsi.c
include/linux/bio.h