diff options
author | Ben Blum <[email protected]> | 2011-11-02 13:38:05 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-11-02 16:06:59 -0700 |
commit | 33ef6b6984403a688189317ef46bb3caab3b70e0 (patch) | |
tree | 43dff6dd0150b34ce69b1d681c92659c9b20eb5c /tools/perf/scripts/python/syscall-counts.py | |
parent | 434a964daa14b9db083ce20404a4a2add54d037a (diff) |
cgroups: more safe tasklist locking in cgroup_attach_proc
Fix unstable tasklist locking in cgroup_attach_proc.
According to this thread - https://lkml.org/lkml/2011/7/27/243 - RCU is
not sufficient to guarantee the tasklist is stable w.r.t. de_thread and
exit. Taking tasklist_lock for reading, instead of rcu_read_lock, ensures
proper exclusion.
Signed-off-by: Ben Blum <[email protected]>
Acked-by: Paul Menage <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Cc: Neil Brown <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions