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)
commit3f98c753717c600eb5708e9b78b3eba6664bddf1
treea71629adf3e470acddd2d75da91766654ccad88b
parent29ff23624e21c89d3321d6429dec8ad3847b534a
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