netfilter: nfnetlink_log: RCU conversion, part 2
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 14 Jun 2010 14:15:23 +0000 (16:15 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 14 Jun 2010 14:15:23 +0000 (16:15 +0200)
commitf5c5440d40a24c5dc8030cde0a03debe87de4afb
tree2dacda8f2134860488dad9783dbcc7ef970f2985
parentbed1be20867d17a3eb2fb5e1613ebdc50c83b8aa
netfilter: nfnetlink_log: RCU conversion, part 2

- must use atomic_inc_not_zero() in instance_lookup_get()

- must use hlist_add_head_rcu() instead of hlist_add_head()

- must use hlist_del_rcu() instead of hlist_del()

- Introduce NFULNL_COPY_DISABLED to stop lockless reader from using an
instance, before we do final instance_put() on it.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/nfnetlink_log.h
net/netfilter/nfnetlink_log.c