Re: [PATCH] blk-iocost: combine local_stat and desc_stat to stat

From: Tejun Heo
Date: Tue May 10 2022 - 14:26:01 EST


On Tue, May 10, 2022 at 11:47:57AM +0800, Chengming Zhou wrote:
> When we flush usage, wait, indebt stat in iocg_flush_stat(), we use
> local_stat and desc_stat, which has no point since the leaf iocg
> only has local_stat and the inner iocg only has desc_stat. Also
> we don't need to flush percpu abs_vusage for these inner iocgs.
>
> This patch combine local_stat and desc_stat to stat, only flush
> percpu abs_vusage for active leaf iocgs, then build inner walk
> list to propagate.
>
> Signed-off-by: Chengming Zhou <zhouchengming@xxxxxxxxxxxxx>

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks.

--
tejun