tcp: Use NET_ADD_STATS instead of NET_ADD_STATS_BH in tcp_event_new_data_sent()
authorDavid S. Miller <davem@davemloft.net>
Thu, 6 Mar 2014 20:03:17 +0000 (15:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Mar 2014 20:19:43 +0000 (15:19 -0500)
commitf09e72a371b615e3e14b6a3d0d16f43cd9fbb042
tree634889d26e000f0f1ca97fc784adb1b13c40e883
parent8f52b1c2a039fddc37caa1f7c2905b61099cee10
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: 28fe1d2e0a5e ("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>
include/net/ip.h
net/ipv4/tcp_output.c