device_cgroup: add lockdep asserts
authorTejun Heo <tj@kernel.org>
Tue, 6 Nov 2012 17:16:53 +0000 (09:16 -0800)
committerTejun Heo <tj@kernel.org>
Tue, 6 Nov 2012 20:28:04 +0000 (12:28 -0800)
device_cgroup uses RCU safe ->exceptions list which is write-protected
by devcgroup_mutex and has had some issues using locking correctly.
Add lockdep asserts to utility functions so that future errors can be
easily detected.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Cc: Aristeu Rozanski <aris@redhat.com>
Cc: Li Zefan <lizefan@huawei.com>
security/device_cgroup.c

Simple merge