net: sk_{detach|attach}_filter() rcu fixes
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 27 Sep 2010 06:07:30 +0000 (06:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2010 04:30:44 +0000 (21:30 -0700)
commitf91ff5b9ff529be8aac2039af63b2c8ea6cd6ebe
tree21af332c509f7ba24699e7a6784f60b48f1baa45
parent7fa7cb7109d07c29ab28bb877bc7049a0150dbe5
net: sk_{detach|attach}_filter() rcu fixes

sk_attach_filter() and sk_detach_filter() are run with socket locked.

Use the appropriate rcu_dereference_protected() instead of blocking BH,
and rcu_dereference_bh().
There is no point adding BH prevention and memory barrier.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c