commit | f91ff5b9ff529be8aac2039af63b2c8ea6cd6ebe | [log] [tgz] |
---|---|---|
author | Eric Dumazet <eric.dumazet@gmail.com> | Mon Sep 27 06:07:30 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Sep 27 21:30:44 2010 -0700 |
tree | 21af332c509f7ba24699e7a6784f60b48f1baa45 | |
parent | 7fa7cb7109d07c29ab28bb877bc7049a0150dbe5 [diff] |
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>