mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: remove bh disabling around percpu_counter accesses
Shaohua Li made percpu_counter irq safe in commit 098faf5805
("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>
This commit is contained in:
parent
0a327889f6
commit
c2a2efbbfc
6 changed files with 3 additions and 23 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue