mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-02 07:13:31 +01:00
cgroup: rstat: call cgroup_rstat_updated_list with cgroup_rstat_lock
The commit093c8812de("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:093c8812de("cgroup: rstat: Cleanup flushing functions and locking") Reported-by: Jakub Kicinski <[email protected]> Reported-by: Breno Leitao <[email protected]> Reported-by: Venkat Rao Bagalkote <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Shakeel Butt <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
This commit is contained in:
1 parent
e8a457b735
commit
7d6c63c319
1 file changed
+2
-1
@@ -318,10 +318,11 @@ __bpf_kfunc void cgroup_rstat_flush(struct cgroup *cgrp)
|
||||
|
||||
might_sleep();
|
||||
for_each_possible_cpu(cpu) {
|
||||
struct cgroup *pos = cgroup_rstat_updated_list(cgrp, cpu);
|
||||
struct cgroup *pos;
|
||||
|
||||
/* Reacquire for each CPU to avoid disabling IRQs too long */
|
||||
__cgroup_rstat_lock(cgrp, cpu);
|
||||
pos = cgroup_rstat_updated_list(cgrp, cpu);
|
||||
for (; pos; pos = pos->rstat_flush_next) {
|
||||
struct cgroup_subsys_state *css;
|
||||
|
||||
|
||||
Reference in new issue
Block a user