• Tejun Heo's avatar
    cgroup: cgroup_css_from_dir() now should be called with RCU read locked · b77d7b60
    Tejun Heo authored
    cgroup->subsys[] will become RCU protected and thus all cgroup_css()
    usages should either be under RCU read lock or cgroup_mutex.  This
    patch updates cgroup_css_from_dir() which returns the matching
    cgroup_subsys_state given a directory file and subsys_id so that it
    requires RCU read lock and updates its sole user
    perf_cgroup_connect().
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarLi Zefan <lizefan@huawei.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    b77d7b60
core.c 182 KB