]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6742ed30e965b07aa5bb0cefbaae89fe87b1021
treede3893156c17c9ab220e4460630f581c55a0f487
parentfd6fd78e15d3904156b36d417616e04db47b622a
device_cgroup: don't grab mutex in rcu callback

Commit 35663f2bc91b ("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