Re: [PATCH net-next 2/2] tcp: remove poll() flakes with FastOpen

2017-04-19 Thread Yuchung Cheng
On Tue, Apr 18, 2017 at 9:45 AM, Eric Dumazet wrote: > > When using TCP FastOpen for an active session, we send one wakeup event > from tcp_finish_connect(), right before the data eventually contained in > the received SYNACK is queued to sk->sk_receive_queue. > > This means that depending on mach

[PATCH net-next 2/2] tcp: remove poll() flakes with FastOpen

2017-04-18 Thread Eric Dumazet
When using TCP FastOpen for an active session, we send one wakeup event from tcp_finish_connect(), right before the data eventually contained in the received SYNACK is queued to sk->sk_receive_queue. This means that depending on machine load or luck, poll() users might receive POLLOUT events inste