]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fix missing wakeup
authorPaolo Abeni <pabeni@redhat.com>
Thu, 4 Mar 2021 21:32:15 +0000 (13:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Mar 2021 22:30:13 +0000 (14:30 -0800)
commitce2e1e430437dd7d6ce58ad41badfe46ab8f6a23
tree05dd87043d6569a5a620246e790116f6c6e6e419
parentff256403c23a6f188690fd38d6041078763758f9
mptcp: fix missing wakeup

__mptcp_clean_una() can free write memory and should wake-up
user-space processes when needed.

When such function is invoked by the MPTCP receive path, the wakeup
is not needed, as the TCP stack will later trigger subflow_write_space
which will do the wakeup as needed.

Other __mptcp_clean_una() call sites need an additional wakeup check
Let's bundle the relevant code in a new helper and use it.

Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/165
Fixes: 5b096ef79bdd ("mptcp: use mptcp release_cb for delayed tasks")
Fixes: 5583a70996e2 ("mptcp: fix spurious retransmissions")
Tested-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c