netfilter: nft_rbtree: introduce locking
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 28 May 2014 13:27:18 +0000 (15:27 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 2 Jun 2014 08:54:31 +0000 (10:54 +0200)
commit7632667d26a99d3b33ec8dd522c4086653ff9388
tree66149d2c11f33559e123ee0fd2efb9d233d21861
parenta1cee076f4d4774504c62e0f1846a11a6fcb6be3
netfilter: nft_rbtree: introduce locking

There's no rbtree rcu version yet, so let's fall back on the spinlock
to protect the concurrent access of this structure both from user
(to update the set content) and kernel-space (in the packet path).

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_rbtree.c