[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160503.162054.1321812964438781830.davem@davemloft.net>
Date: Tue, 03 May 2016 16:20:54 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: edumazet@...gle.com, netdev@...r.kernel.org, soheil@...gle.com,
ast@...com, marcelo.leitner@...il.com
Subject: Re: [PATCH net-next] tcp: guarantee forward progress in
tcp_sendmsg()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 02 May 2016 21:49:25 -0700
> From: Eric Dumazet <edumazet@...gle.com>
>
> 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@...gle.com>
Applied.
Powered by blists - more mailing lists