[PATCH mptcp-net 6/6] mptcp: pm: restrict in-kernel worker actions to this PM
"Matthieu Baerts (NGI0)" <[email protected]> Mon, 27 Jul 2026 19:21:55 +0200
| Newsgroups | dev.linux.lists.mptcp |
|---|---|
| Message-ID | <20260727-mptcp-pm-userspace-id0-case-v1-6-9877f02a9bae@kernel.org> |
No need to check them for the userspace PM.
Fixes: a49eb8ae95b8 ("mptcp: pm: worker: split in-kernel and common tasks")
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
---
net/mptcp/pm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/mptcp/pm.c b/net/mptcp/pm.c
index 8421048f1a20..9bb2da3956b9 100644
--- a/net/mptcp/pm.c
+++ b/net/mptcp/pm.c
@@ -1138,7 +1138,9 @@ void mptcp_pm_worker(struct mptcp_sock *msk)
pm->status &= ~BIT(MPTCP_PM_RM_ADDR_RECEIVED);
mptcp_pm_rm_addr_recv(msk);
}
- __mptcp_pm_kernel_worker(msk);
+
+ if (mptcp_pm_is_kernel(msk))
+ __mptcp_pm_kernel_worker(msk);
spin_unlock_bh(&msk->pm.lock);
}
--
2.53.0