]> git.baikalelectronics.ru Git - kernel.git/commit
block: move submit_bio_checks() into submit_bio_noacct
authorMing Lei <ming.lei@redhat.com>
Wed, 16 Feb 2022 04:45:07 +0000 (12:45 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Feb 2022 02:42:27 +0000 (19:42 -0700)
commit81fea885af8eb46b9e9ee023c65b4f3665dc54f7
tree0392e8b174b690b85cba8312f968d232b0ecfdc0
parent9486724c80016b8f7126f206117a97a9da541b46
block: move submit_bio_checks() into submit_bio_noacct

It is more clean & readable to check bio when starting to submit it,
instead of just before calling ->submit_bio() or blk_mq_submit_bio().

Also it provides us chance to optimize bio submission without checking
bio.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220216044514.2903784-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c