[PATCH mptcp-net v3 8/8] mptcp: pm: restrict in-kernel worker actions to this PM
"Matthieu Baerts (NGI0)" <[email protected]>
| Newsgroups | dev.linux.lists.mptcp |
|---|---|
| Message-ID | <20260807-mptcp-pm-userspace-id0-case-v3-8-de9088549924@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]>
---
v3: use !mptcp_pm_is_userspace(), to handle WIP BPF MPTCP PM
---
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 4ff12fe25d0b..ecf123526786 100644
--- a/net/mptcp/pm.c
+++ b/net/mptcp/pm.c
@@ -1141,7 +1141,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_userspace(msk))
+ __mptcp_pm_kernel_worker(msk);
spin_unlock_bh(&msk->pm.lock);
}
--
2.53.0