aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/gre.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-05-02 21:49:25 -0700
committerDavid S. Miller <davem@davemloft.net>2016-05-04 12:44:36 -0400
commitd4011239f46ac6e407af61e3f74d1e3874fc9394 (patch)
tree5091043fd26ab8871104ba087894d9842a399d10 /include/net/gre.h
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
downloadlinux-dev-d4011239f46ac6e407af61e3f74d1e3874fc9394.tar.xz
linux-dev-d4011239f46ac6e407af61e3f74d1e3874fc9394.zip
tcp: guarantee forward progress in tcp_sendmsg()
Under high rx pressure, it is possible tcp_sendmsg() never has a chance to allocate an skb and loop forever as sk_flush_backlog() would always return true. Fix this by calling sk_flush_backlog() only if one skb had been allocated and filled before last backlog check. Fixes: d41a69f1d390 ("tcp: make tcp_sendmsg() aware of socket backlog") Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/gre.h')
0 files changed, 0 insertions, 0 deletions