]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02993f53e814513bcb3ef5e2645915c8b711e7cc
tree21af332c509f7ba24699e7a6784f60b48f1baa45
parent9c0137dfc47a26df4cdcf6945a4c4db3731867e2
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