aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-01-18 02:46:52 -0500
committerDavid S. Miller <davem@davemloft.net>2011-01-19 00:33:05 -0500
commit80f8f1027b99660897bdeaeae73002185d829906 (patch)
treeb8aafe71974b2b7295f20eeb1fad6191fadd8551 /include/net/sock.h
parentd6ae3bae3d1bf7a8bf367e29f2cac0788dcd0db5 (diff)
net: filter: dont block softirqs in sk_run_filter()
Packet filter (BPF) doesnt need to disable softirqs, being fully re-entrant and lock-less. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index d884d268c704..ba6465bf7c7a 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -1189,7 +1189,7 @@ extern void sk_filter_release_rcu(struct rcu_head *rcu);
1189static inline void sk_filter_release(struct sk_filter *fp) 1189static inline void sk_filter_release(struct sk_filter *fp)
1190{ 1190{
1191 if (atomic_dec_and_test(&fp->refcnt)) 1191 if (atomic_dec_and_test(&fp->refcnt))
1192 call_rcu_bh(&fp->rcu, sk_filter_release_rcu); 1192 call_rcu(&fp->rcu, sk_filter_release_rcu);
1193} 1193}
1194 1194
1195static inline void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp) 1195static inline void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp)