diff options
author | Eric Dumazet <edumazet@google.com> | 2017-01-20 05:06:08 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-20 11:27:22 -0500 |
commit | c2a2efbbfcb31bedcf81170fc1aa920255c33b8f (patch) | |
tree | 0feeac1e086d1179ce3bce1482d5cd27653aa33a /net/ipv4/inet_connection_sock.c | |
parent | 0a327889f64619ac3ec886208644191cd87de525 (diff) | |
download | linux-c2a2efbbfcb31bedcf81170fc1aa920255c33b8f.tar.bz2 |
net: remove bh disabling around percpu_counter accesses
Shaohua Li made percpu_counter irq safe in commit 098faf5805c8
("percpu_counter: make APIs irq safe")
We can safely remove BH disable/enable sections around various
percpu_counter manipulations.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_connection_sock.c')
-rw-r--r-- | net/ipv4/inet_connection_sock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index 096a085611ab..c7f7c5335369 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c @@ -836,9 +836,8 @@ void inet_csk_destroy_sock(struct sock *sk) sk_refcnt_debug_release(sk); - local_bh_disable(); percpu_counter_dec(sk->sk_prot->orphan_count); - local_bh_enable(); + sock_put(sk); } EXPORT_SYMBOL(inet_csk_destroy_sock); |