* [MPTCP] [PATCH mptcp 3/3] mptcp: move subflow close loop after sk close check
@ 2021-02-02 17:47 Florian Westphal
0 siblings, 0 replies; only message in thread
From: Florian Westphal @ 2021-02-02 17:47 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 974 bytes --]
In case mptcp socket is already dead the entire mptcp socket
will be freed. We can avoid the close check in this case.
Signed-off-by: Florian Westphal <fw(a)strlen.de>
---
net/mptcp/protocol.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index 24eb42a60844..9472bb265e32 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -2244,9 +2244,6 @@ static void mptcp_worker(struct work_struct *work)
mptcp_check_fastclose(msk);
- if (test_and_clear_bit(MPTCP_WORK_CLOSE_SUBFLOW, &msk->flags))
- __mptcp_close_subflow(msk);
-
if (msk->pm.status)
mptcp_pm_nl_work(msk);
@@ -2268,6 +2265,9 @@ static void mptcp_worker(struct work_struct *work)
goto unlock;
}
+ if (test_and_clear_bit(MPTCP_WORK_CLOSE_SUBFLOW, &msk->flags))
+ __mptcp_close_subflow(msk);
+
if (!test_and_clear_bit(MPTCP_WORK_RTX, &msk->flags))
goto unlock;
--
2.26.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-02 17:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-02 17:47 [MPTCP] [PATCH mptcp 3/3] mptcp: move subflow close loop after sk close check Florian Westphal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox