[NETFILTER]: Switch nf_register_hook/nf_unregister_hook to mutex
authorPatrick McHardy <kaber@trash.net>
Mon, 12 Feb 2007 19:10:14 +0000 (11:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2007 19:10:14 +0000 (11:10 -0800)
commitfd706d6957b3c66ae70b4bbdb9e13993213697f7
tree7b035f737c93b8d913c999c9a64eb52488c1f6ca
parentd486dd1fb8573fad5b8dab61a7d1406116fd4baf
[NETFILTER]: Switch nf_register_hook/nf_unregister_hook to mutex

The spinlock is only used in process context (register/unregister)
since RCU is used for the nf_hook lists, switch to a mutex.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/core.c