]> git.baikalelectronics.ru Git - kernel.git/commit
block: don't check bio in blk_throtl_dispatch_work_fn
authorMing Lei <ming.lei@redhat.com>
Wed, 16 Feb 2022 04:45:10 +0000 (12:45 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Feb 2022 02:42:28 +0000 (19:42 -0700)
commite10f0936efa5738bc5540a6118104c50c1961537
treea71629adf3e470acddd2d75da91766654ccad88b
parent128cdc8f392c94700515a25dda4f6adf01a4a907
block: don't check bio in blk_throtl_dispatch_work_fn

The bio has been checked already before throttling, so no need to check
it again before dispatching it from throttle queue.

Add a helper of submit_bio_noacct_nocheck() for this purpose.

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