cpuset: fix RCU lockdep splat in cpuset_print_task_mems_allowed()
authorLi Zefan <lizefan@huawei.com>
Tue, 12 Mar 2013 02:28:39 +0000 (10:28 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 12 Mar 2013 21:25:25 +0000 (14:25 -0700)
commitcfb5966bef85412dab9c93553db10b3e99ac32e8
treea0cf5d9513f8b9a97af9bd5e186ff611493a8e93
parentff794dea52eaaa09017efea688a1d7f92ab0818e
cpuset: fix RCU lockdep splat in cpuset_print_task_mems_allowed()

Sasha reported a lockdep warning when OOM was triggered. The reason
is cgroup_name() should be called with rcu_read_lock() held.

Reported-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cpuset.c