block: Fix io statistics for cgroup in throttle path
authorJinke Han <hanjinke.666@bytedance.com>
Thu, 16 Feb 2023 03:22:50 +0000 (11:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Feb 2023 18:04:11 +0000 (11:04 -0700)
commit0f7c8f0f7934c389b0f9fa1f151e753d8de6348f
tree415fc7e99044292219d38b7181379204081d20c2
parent67205f80be9910207481406c47f7d85e703fb2e9
block: Fix io statistics for cgroup in throttle path

In the current code, io statistics are missing for cgroup when bio
was throttled by blk-throttle. Fix it by moving the unreaching code
to submit_bio_noacct_nocheck.

Fixes: 3f98c753717c ("block: don't check bio in blk_throtl_dispatch_work_fn")
Signed-off-by: Jinke Han <hanjinke.666@bytedance.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Acked-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230216032250.74230-1-hanjinke.666@bytedance.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c