diff options
author | Eric Dumazet <edumazet@google.com> | 2017-01-20 08:06:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-20 11:27:22 -0500 |
commit | c2a2efbbfcb31bedcf81170fc1aa920255c33b8f (patch) | |
tree | 0feeac1e086d1179ce3bce1482d5cd27653aa33a /net/ipv4/tcp_ipv4.c | |
parent | 0a327889f64619ac3ec886208644191cd87de525 (diff) |
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.c | 2 |
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) | |||
1887 | tcp_free_fastopen_req(tp); | 1887 | tcp_free_fastopen_req(tp); |
1888 | tcp_saved_syn_free(tp); | 1888 | tcp_saved_syn_free(tp); |
1889 | 1889 | ||
1890 | local_bh_disable(); | ||
1891 | sk_sockets_allocated_dec(sk); | 1890 | sk_sockets_allocated_dec(sk); |
1892 | local_bh_enable(); | ||
1893 | } | 1891 | } |
1894 | EXPORT_SYMBOL(tcp_v4_destroy_sock); | 1892 | EXPORT_SYMBOL(tcp_v4_destroy_sock); |
1895 | 1893 | ||