diff mbox series

[mptcp-next,v1,3/3] Squash to "mptcp: pm: add rm_addr_received() interface"

Message ID 9bebb11d7b981b9b130a3921ea1764c33fb5fdfc.1742181977.git.tanggeliang@kylinos.cn (mailing list archive)
State Superseded, archived
Headers show
Series bugfixes for "BPF path manager, part 6, v2" | expand

Checks

Context Check Description
matttbe/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
matttbe/shellcheck success MPTCP selftests files have not been modified
matttbe/build success Build and static analysis OK
matttbe/KVM_Validation__normal success Success! ✅
matttbe/KVM_Validation__debug fail Critical: Global Timeout ❌
matttbe/KVM_Validation__btf-normal__only_bpftest_all_ success Success! ✅
matttbe/KVM_Validation__btf-debug__only_bpftest_all_ success Success! ✅

Commit Message

Geliang Tang March 17, 2025, 3:29 a.m. UTC
From: Geliang Tang <tanggeliang@kylinos.cn>

Shouldn't return here, should give a chance to call
__mptcp_pm_kernel_worker().

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
 net/mptcp/pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/net/mptcp/pm.c b/net/mptcp/pm.c
index 788fbe31a40f..5ef989abb4c0 100644
--- a/net/mptcp/pm.c
+++ b/net/mptcp/pm.c
@@ -934,7 +934,7 @@  void mptcp_pm_worker(struct mptcp_sock *msk)
 		pm->status &= ~BIT(MPTCP_PM_RM_ADDR_RECEIVED);
 		spin_unlock_bh(&msk->pm.lock);
 		pm->ops->rm_addr_received(msk);
-		return;
+		spin_lock_bh(&msk->pm.lock);
 	}
 	if (pm->status & BIT(MPTCP_PM_ESTABLISHED)) {
 		pm->status &= ~BIT(MPTCP_PM_ESTABLISHED);