cgroup: rstat: call cgroup_rstat_updated_list with cgroup_rstat_lock
authorShakeel Butt <shakeel.butt@linux.dev>
Tue, 1 Apr 2025 17:09:12 +0000 (10:09 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 1 Apr 2025 17:33:26 +0000 (07:33 -1000)
commit7d6c63c3191427a69ffd1383146df01f695d6195
tree32a79f33e81b933dbfb356cdb832737a2be39cbf
parente8a457b73569d7096ff46c307c37dbba55dd7a9c
cgroup: rstat: call cgroup_rstat_updated_list with cgroup_rstat_lock

The commit 093c8812de2d ("cgroup: rstat: Cleanup flushing functions and
locking") during cleanup accidentally changed the code to call
cgroup_rstat_updated_list() without cgroup_rstat_lock which is required.
Fix it.

Fixes: 093c8812de2d ("cgroup: rstat: Cleanup flushing functions and locking")
Reported-by: Jakub Kicinski <kuba@kernel.org>
Reported-by: Breno Leitao <leitao@debian.org>
Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Closes: https://lore.kernel.org/all/6564c3d6-9372-4352-9847-1eb3aea07ca4@linux.ibm.com/
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/rstat.c