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)
commit4b1c7840b7d01b14a1a00fa0e61b761d4391ba67
tree1e93e0a8a0bb6fb2f5934a58a6eb32b3077b18b8
parent5b805f2a7675634fbdf9ac1c9b2256905ab2ea68
device_cgroup: add lockdep asserts

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