aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-01-20 05:06:08 -0800
committerDavid S. Miller <davem@davemloft.net>2017-01-20 11:27:22 -0500
commitc2a2efbbfcb31bedcf81170fc1aa920255c33b8f (patch)
tree0feeac1e086d1179ce3bce1482d5cd27653aa33a /net/ipv4/tcp_ipv4.c
parentcxgb4: hide unused warnings (diff)
downloadlinux-dev-c2a2efbbfcb31bedcf81170fc1aa920255c33b8f.tar.xz
linux-dev-c2a2efbbfcb31bedcf81170fc1aa920255c33b8f.zip
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/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 3644fc117691..f7325b25b06e 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -1887,9 +1887,7 @@ void tcp_v4_destroy_sock(struct sock *sk)
tcp_free_fastopen_req(tp);
tcp_saved_syn_free(tp);
- local_bh_disable();
sk_sockets_allocated_dec(sk);
- local_bh_enable();
}
EXPORT_SYMBOL(tcp_v4_destroy_sock);