Re: [PATCH net-next] tcp: guarantee forward progress in tcp_sendmsg()

2016-05-03 Thread David Miller
From: Eric Dumazet Date: Mon, 02 May 2016 21:49:25 -0700 > From: Eric Dumazet > > 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 o

Re: [PATCH net-next] tcp: guarantee forward progress in tcp_sendmsg()

2016-05-02 Thread Soheil Hassas Yeganeh
On Tue, May 3, 2016 at 12:49 AM, Eric Dumazet wrote: > From: Eric Dumazet > > 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

[PATCH net-next] tcp: guarantee forward progress in tcp_sendmsg()

2016-05-02 Thread Eric Dumazet
From: Eric Dumazet 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: d