diff options
author | Paolo Abeni <pabeni@redhat.com> | 2021-03-04 13:32:15 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-04 14:30:13 -0800 |
commit | 417789df4a03bc820b082bcc503f0d4c5e4704b9 (patch) | |
tree | 05dd87043d6569a5a620246e790116f6c6e6e419 /net/mptcp/subflow.c | |
parent | c2e6048fa1cf2228063aec299f93ac6eb256b457 (diff) | |
download | linux-stable-417789df4a03bc820b082bcc503f0d4c5e4704b9.tar.gz linux-stable-417789df4a03bc820b082bcc503f0d4c5e4704b9.tar.bz2 linux-stable-417789df4a03bc820b082bcc503f0d4c5e4704b9.zip |
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: 6e628cd3a8f7 ("mptcp: use mptcp release_cb for delayed tasks")
Fixes: 64b9cea7a0af ("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>
Diffstat (limited to 'net/mptcp/subflow.c')
0 files changed, 0 insertions, 0 deletions