]> Gentwo Git Trees - linux/.git/commit
mptcp: grafting MPJ subflow earlier
authorPaolo Abeni <pabeni@redhat.com>
Fri, 21 Nov 2025 17:02:02 +0000 (18:02 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Nov 2025 03:49:41 +0000 (19:49 -0800)
commite777a7fb06b17cd62f6935313eef0206174ed71d
tree1dc71f3351a6a644606542951ad4d936ff56f043
parentbd92dd8e03d98a499c8525e3748f046aaca2090d
mptcp: grafting MPJ subflow earlier

Later patches need to ensure that all MPJ subflows are grafted to the
msk socket before accept() completion.

Currently the grafting happens under the msk socket lock: potentially
at msk release_cb time which make satisfying the above condition a bit
tricky.

Move the MPJ subflow grafting earlier, under the msk data lock, so that
we can use such lock as a synchronization point.

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