diff options
author | Ming Lei <[email protected]> | 2024-05-15 09:31:56 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-05-15 20:14:20 -0600 |
commit | 6da6680632792709cecf2b006f2fe3ca7857e791 (patch) | |
tree | dc7324c953f3bfa9a9b02d1f48d5370e7f7baaa3 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | efb905aeb44b0e99c0e6b07865b1885ae0471ebf (diff) |
blk-cgroup: fix list corruption from resetting io stat
Since commit 3b8cc6298724 ("blk-cgroup: Optimize blkcg_rstat_flush()"),
each iostat instance is added to blkcg percpu list, so blkcg_reset_stats()
can't reset the stat instance by memset(), otherwise the llist may be
corrupted.
Fix the issue by only resetting the counter part.
Cc: Tejun Heo <[email protected]>
Cc: Waiman Long <[email protected]>
Cc: Jay Shin <[email protected]>
Fixes: 3b8cc6298724 ("blk-cgroup: Optimize blkcg_rstat_flush()")
Signed-off-by: Ming Lei <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Reviewed-by: Waiman Long <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions