Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'cgroup-for-6.0-rc2-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup

Pull another cgroup fix from Tejun Heo:
"Commit 4f7e7236435c ("cgroup: Fix threadgroup_rwsem <->
cpus_read_lock() deadlock") required the cgroup
core to grab cpus_read_lock() before invoking ->attach().

Unfortunately, it missed adding cpus_read_lock() in
cgroup_attach_task_all(). Fix it"

* tag 'cgroup-for-6.0-rc2-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all()

+2
+2
kernel/cgroup/cgroup-v1.c
··· 59 59 int retval = 0; 60 60 61 61 mutex_lock(&cgroup_mutex); 62 + cpus_read_lock(); 62 63 percpu_down_write(&cgroup_threadgroup_rwsem); 63 64 for_each_root(root) { 64 65 struct cgroup *from_cgrp; ··· 73 72 break; 74 73 } 75 74 percpu_up_write(&cgroup_threadgroup_rwsem); 75 + cpus_read_unlock(); 76 76 mutex_unlock(&cgroup_mutex); 77 77 78 78 return retval;