NetLabel: Remove unneeded RCU read locks
authorPaul Moore <paul.moore@hp.com>
Tue, 29 Jan 2008 13:37:52 +0000 (08:37 -0500)
committerJames Morris <jmorris@namei.org>
Tue, 29 Jan 2008 21:17:16 +0000 (08:17 +1100)
commitc783f1ce5712530ba404807c55d77ac782eb8a7d
tree3153ec98b5c6d57eb5a0aad43389d4faa6d63586
parent0ba6c33bcddc64a54b5f1c25a696c4767dc76292
NetLabel: Remove unneeded RCU read locks

This patch removes some unneeded RCU read locks as we can treat the reads as
"safe" even without RCU.  It also converts the NetLabel configuration refcount
from a spinlock protected u32 into atomic_t to be more consistent with the rest
of the kernel.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
net/netlabel/netlabel_cipso_v4.c
net/netlabel/netlabel_kapi.c
net/netlabel/netlabel_mgmt.c
net/netlabel/netlabel_mgmt.h
net/netlabel/netlabel_unlabeled.c