diff options
author | Eric Dumazet <edumazet@google.com> | 2017-01-20 14:06:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-20 17:27:22 +0100 |
commit | c2a2efbbfcb31bedcf81170fc1aa920255c33b8f (patch) | |
tree | 0feeac1e086d1179ce3bce1482d5cd27653aa33a /net/ipv4/tcp.c | |
parent | cxgb4: hide unused warnings (diff) | |
download | linux-c2a2efbbfcb31bedcf81170fc1aa920255c33b8f.tar.xz linux-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.c')
-rw-r--r-- | net/ipv4/tcp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index aba6ea76338e..c43eb1a831d7 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -420,9 +420,7 @@ void tcp_init_sock(struct sock *sk) sk->sk_sndbuf = sysctl_tcp_wmem[1]; sk->sk_rcvbuf = sysctl_tcp_rmem[1]; - local_bh_disable(); sk_sockets_allocated_inc(sk); - local_bh_enable(); } EXPORT_SYMBOL(tcp_init_sock); |