]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: remove extra POLL_OUT added for finished active connect()
authorNeal Cardwell <ncardwell@google.com>
Wed, 2 Aug 2017 19:59:58 +0000 (15:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 16:30:47 +0000 (09:30 -0700)
commitf479d1a271b1b6a2f77aed22750fbf4d74f7fa84
treeb34ac233cd954b2723d84c5d3658f22e3cd04151
parent26904001cf0939a4950137601217dfebce8e9de9
tcp: remove extra POLL_OUT added for finished active connect()

Commit 0647a6b491ac ("tcp: remove header prediction") introduced a
minor bug: the sk_state_change() and sk_wake_async() notifications for
a completed active connection happen twice: once in this new spot
inside tcp_finish_connect() and once in the existing code in
tcp_rcv_synsent_state_process() immediately after it calls
tcp_finish_connect(). This commit remoes the duplicate POLL_OUT
notifications.

Fixes: 0647a6b491ac ("tcp: remove header prediction")
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Cc: Florian Westphal <fw@strlen.de>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c