diff options
author | David S. Miller <davem@davemloft.net> | 2014-03-06 21:03:17 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-06 21:19:43 +0100 |
commit | f7324acd98ce48fcde9783884ffe8c0b90899e5e (patch) | |
tree | 634889d26e000f0f1ca97fc784adb1b13c40e883 /net/ipv4/tcp_output.c | |
parent | bonding: make slave status notifications GFP_ATOMIC (diff) | |
download | linux-f7324acd98ce48fcde9783884ffe8c0b90899e5e.tar.xz linux-f7324acd98ce48fcde9783884ffe8c0b90899e5e.zip |
tcp: Use NET_ADD_STATS instead of NET_ADD_STATS_BH in tcp_event_new_data_sent()
Can be invoked from non-BH context.
Based upon a patch by Eric Dumazet.
Fixes: f19c29e3e391 ("tcp: snmp stats for Fast Open, SYN rtx, and data pkts")
Reported-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 5286228679bd..a02c884d4321 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -87,8 +87,8 @@ static void tcp_event_new_data_sent(struct sock *sk, const struct sk_buff *skb) tcp_rearm_rto(sk); } - NET_ADD_STATS_BH(sock_net(sk), LINUX_MIB_TCPORIGDATASENT, - tcp_skb_pcount(skb)); + NET_ADD_STATS(sock_net(sk), LINUX_MIB_TCPORIGDATASENT, + tcp_skb_pcount(skb)); } /* SND.NXT, if window was not shrunk. |