cgroup: fix lockdep warning in debug controller
authorTejun Heo <tj@kernel.org>
Wed, 14 Jun 2017 20:01:41 +0000 (16:01 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 14 Jun 2017 20:01:41 +0000 (16:01 -0400)
commitb6053d40e3387c916d56d319ba6bfdb2c42a67c7
tree5f45453c0f4675950f56ee4ef1fdb16057eb6552
parent2866c0b4cf25274040f0b4cc045ad1f44b885dd8
cgroup: fix lockdep warning in debug controller

The debug controller grabs cgroup_mutex from interface file show
functions which can deadlock and triggers lockdep warnings.  Fix it by
using cgroup_kn_lock_live()/cgroup_kn_unlock() instead.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Waiman Long <longman@redhat.com>
kernel/cgroup/debug.c