]> git.karo-electronics.de Git - karo-tx-linux.git/commit
device_cgroup: don't grab mutex in rcu callback
authorJerry Snitselaar <jerry.snitselaar@oracle.com>
Wed, 20 Feb 2013 02:13:20 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 02:13:20 +0000 (13:13 +1100)
commit6df6a56547983341cb067201177c3987ca22f300
treed9c74864bc321f7df3f6c14c320c8f91c58b4faa
parent19f949f52599ba7c3f67a5897ac6be14bfcb1200
device_cgroup: don't grab mutex in rcu callback

commit 103a197 ("security/device_cgroup: lock assert fails in
dev_exception_clean()") grabs devcgroup_mutex to fix assert failure, but
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>
security/device_cgroup.c