[NetLabel]: make the CIPSOv4 cache spinlocks bottom half safe
authorPaul Moore <paul.moore@hp.com>
Mon, 25 Sep 2006 22:52:37 +0000 (15:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Sep 2006 22:52:37 +0000 (15:52 -0700)
commit609c92feea5652809319bb77f19d24a44615687d
tree01c7523782233356d0a373f775f21fa52099cd23
parent14a72f53fb1bb5d5c2bdd8cf172219519664729a
[NetLabel]: make the CIPSOv4 cache spinlocks bottom half safe

The CIPSOv4 cache traversal routines are triggered both the userspace events
(cache invalidation due to DOI removal or updated SELinux policy) and network
packet processing events.  As a result there is a problem with the existing
CIPSOv4 cache spinlocks as they are not bottom-half/softirq safe.  This patch
converts the CIPSOv4 cache spin_[un]lock() calls into spin_[un]lock_bh() calls
to address this problem.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/cipso_ipv4.c