Re: [PATCH net] tcp: fix return value for partial writes

2016-11-03 Thread David Miller
From: Eric Dumazet Date: Wed, 02 Nov 2016 14:41:50 -0700 > From: Eric Dumazet > > After my commit, tcp_sendmsg() might restart its loop after > processing socket backlog. > > If sk_err is set, we blindly return an error, even though we > copied data to user space before. > > We should instead

Re: [PATCH net] tcp: fix return value for partial writes

2016-11-02 Thread Soheil Hassas Yeganeh
On Wed, Nov 2, 2016 at 5:41 PM, Eric Dumazet wrote: > From: Eric Dumazet > > After my commit, tcp_sendmsg() might restart its loop after > processing socket backlog. > > If sk_err is set, we blindly return an error, even though we > copied data to user space before. > > We should instead return n