• T
    cgroup: cgroup_css_from_dir() now should be called with RCU read locked · b77d7b60
    Tejun Heo 提交于
    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: NTejun Heo <tj@kernel.org>
    Acked-by: NLi 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.0 KB