Re: [PATCH] block: Fix io statistics for cgroup in throttle path

From: Muchun Song
Date: Thu Feb 16 2023 - 01:57:55 EST




> On Feb 16, 2023, at 11:22, Jinke Han <hanjinke.666@xxxxxxxxxxxxx> wrote:
>
> From: Jinke Han <hanjinke.666@xxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxx>

Acked-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>

Thanks.