]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mptcp: do not miss early first subflow close event notification
authorPaolo Abeni <pabeni@redhat.com>
Fri, 21 Nov 2025 17:02:07 +0000 (18:02 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Nov 2025 03:49:42 +0000 (19:49 -0800)
commit48a395605e088e1365bcc0b94e53746537c21969
tree3060967a55c09a414bc6f1da90f53f85777d2fcc
parent2ca1b8926fda1468513bb3b8731422d5b2aa0ab1
mptcp: do not miss early first subflow close event notification

The MPTCP protocol is not currently emitting the NL event when the first
subflow is closed before msk accept() time.

By replacing the in use close helper is such scenario, implicitly introduce
the missing notification. Note that in such scenario we want to be sure
that mptcp_close_ssk() will not trigger any PM work, move the msk state
change update earlier, so that the previous patch will offer such
guarantee.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Geliang Tang <geliang@kernel.org>
Tested-by: Geliang Tang <geliang@kernel.org>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-8-1f34b6c1e0b1@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c