]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:46 +0000 (09:32 +0100)
commit32caa5073c5ca044cfb67293be10fe5e2479ca39
treead1cc6c470f4ded9b2be524624ee9fa2af238ec6
parent9a6b4f8949655c55718f3387b73fe76cc712c827
block: Fix io statistics for cgroup in throttle path

[ Upstream commit e2dfee64436de30890d10ae89e8fc2b2fa19ce8c ]

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: ee6ed94ebbdc ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-core.c