device_cgroup: don't grab mutex in rcu callback
authorJerry Snitselaar <jerry.snitselaar@oracle.com>
Fri, 22 Feb 2013 00:41:31 +0000 (16:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:15 +0000 (17:22 -0800)
commit53eb8c82d581fdd4b389a3e417261f3ae924e603
treede3893156c17c9ab220e4460630f581c55a0f487
parent024e4ec1856d57bb78c06ec903d29dcf716f5f47
device_cgroup: don't grab mutex in rcu callback

Commit 103a197c0c4e ("security/device_cgroup: lock assert fails in
dev_exception_clean()") grabs devcgroup_mutex to fix assert failure, but
a mutex can't be grabbed in rcu callback.  Since there shouldn't be any
other references when css_free is called, mutex isn't needed for list
cleanup in devcgroup_css_free().

Signed-off-by: Jerry Snitselaar <jerry.snitselaar@oracle.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Aristeu Rozanski <aris@redhat.com>
Cc: James Morris <james.l.morris@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
security/device_cgroup.c