diff options
author | Ming Lei <ming.lei@redhat.com> | 2024-05-15 09:31:56 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-05-15 20:14:20 -0600 |
commit | 6da6680632792709cecf2b006f2fe3ca7857e791 (patch) | |
tree | dc7324c953f3bfa9a9b02d1f48d5370e7f7baaa3 /lib/crypto/mpi/mpi-mod.c | |
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 <tj@kernel.org>
Cc: Waiman Long <longman@redhat.com>
Cc: Jay Shin <jaeshin@redhat.com>
Fixes: 3b8cc6298724 ("blk-cgroup: Optimize blkcg_rstat_flush()")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Waiman Long <longman@redhat.com>
Link: https://lore.kernel.org/r/20240515013157.443672-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/crypto/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions