]> git.dujemihanovic.xyz Git - linux.git/commit
mptcp: use mptcp_schedule_work instead of open-coding it
authorPaolo Abeni <pabeni@redhat.com>
Tue, 11 Apr 2023 20:42:09 +0000 (22:42 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 13 Apr 2023 16:58:55 +0000 (09:58 -0700)
commita5cb752b125766524c921faab1a45cc96065b0a7
tree6f9fd2b692c99934f2712ad5f12a19c9eb330985
parent5b7be2d4fd6eb8bec14c2de96c664e07c7d0bd82
mptcp: use mptcp_schedule_work instead of open-coding it

Beyond reducing code duplication this also avoids scheduling
the mptcp_worker on a closed socket on some edge scenarios.

The addressed issue is actually older than the blamed commit
below, but this fix needs it as a pre-requisite.

Fixes: ba8f48f7a4d7 ("mptcp: introduce mptcp_schedule_work")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/options.c
net/mptcp/subflow.c