]> 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)
commitee6ed94ebbdcfdfc62505f1d24646ea65ef327d5
treea71629adf3e470acddd2d75da91766654ccad88b
parent5ba73c826376d21c9daf77940089efc342ca4545
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