]> www.infradead.org Git - users/hch/misc.git/commit
block: remove bio_add_pc_page block-cleanup-passthrough
authorChristoph Hellwig <hch@lst.de>
Sat, 23 Nov 2024 05:37:23 +0000 (06:37 +0100)
committerChristoph Hellwig <hch@lst.de>
Sat, 23 Nov 2024 06:16:15 +0000 (07:16 +0100)
commitb94458fa0d629084c567a32fbf29038fa118c90e
tree81503ea47f0af84ca0cb847e1043cbf440a8d772
parent2a163a4cea153348172e260a0c5b5569103a66a3
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>
block/bio-integrity.c
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