diff options
author | 2017-04-18 09:45:52 -0700 | |
---|---|---|
committer | 2017-04-20 15:42:11 -0400 | |
commit | 0f9fa831aecfc297b7b45d4f046759bcefcf87f0 (patch) | |
tree | 24e08556cbd89b183cfb02743e268f61346e9997 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tcp: remove poll() flakes when receiving RST (diff) | |
download | wireguard-linux-0f9fa831aecfc297b7b45d4f046759bcefcf87f0.tar.xz wireguard-linux-0f9fa831aecfc297b7b45d4f046759bcefcf87f0.zip |
tcp: remove poll() flakes with FastOpen
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 instead of POLLIN|POLLOUT
To fix this, we need to move the call to sk->sk_state_change()
after the (optional) call to tcp_rcv_fastopen_synack()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions