forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mptcp: call mp_fail_no_response only when needed
mptcp_mp_fail_no_response shouldn't be invoked on each worker run, it should be invoked only when MP_FAIL response timeout occurs. This patch adds a new msk flag MPTCP_WORK_TIMEOUT, set it in mptcp_timeout_timer(). And test it in mptcp_worker() before invoking mptcp_mp_fail_no_response(). Check the SOCK_DEAD flag on the subflow in mptcp_mp_fail_no_response() to make sure it's a MP_FAIL timeout, not a MPTCP socket close timeout. Now mp_fail_response_expect_subflow() helper is only used by mptcp_mp_fail_no_response(), move the definition of the helper right before mptcp_mp_fail_no_response(). Closes: multipath-tcp/mptcp_net-next#281 Fixes: d9fb797 ("mptcp: Do not traverse the subflow connection list without lock") Signed-off-by: Geliang Tang <geliang.tang@suse.com>
- Loading branch information
1 parent
2109f19
commit 6690a48
Showing
2 changed files
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters