block: skip unnecessary checks for split bio
authorYu Kuai <yukuai3@huawei.com>
Wed, 10 Sep 2025 06:30:54 +0000 (14:30 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Sep 2025 11:23:46 +0000 (05:23 -0600)
commit0b64682e78f7a53ea863e368b1aa66f05767858d
tree5003093cbd245878003825c7a1ed9abd2a78bf25
parente3290419d9be6cbd7a42c0691504dd66825cabf5
block: skip unnecessary checks for split bio

Lots of checks are already done while submitting this bio the first
time, and there is no need to check them again when this bio is
resubmitted after split.

Hence open code should_fail_bio() and blk_throtl_bio() that are still
necessary from submit_bio_split_bioset().

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-merge.c
block/blk.h