mptcp: drop unused rcu member in mptcp_pm_addr_entry
Subsystems (3)
PATCH 1/1 mptcp: drop unused rcu member in mptcp_pm_addr_entry
From: Geliang Tang <[email protected]>
kfree_rcu() had been removed from pm_netlink.c, so this rcu field in struct mptcp_pm_addr_entry became useless. Let's drop it.
--- net/mptcp/pm_netlink.c | 1 - 1 file changed, 1 deletion(-)
net/mptcp/pm_netlink.c +0 -1
@@ -27,7 +27,6 @@ struct mptcp_pm_addr_entry {struct mptcp_addr_info addr;u8 flags;int ifindex; -struct rcu_head rcu;struct socket *lsk; };
base-commit: 0541a6293298fb52789de389dfb27ef54df81f73
Signature · 1 line
2.32.0
Jakub Kicinski
maintainerQuoted 8 lines · On Mon, 2 Aug 2021 16:19:14 -0700 Mat Martineau wrote:
From: Geliang Tang <[email protected]>
kfree_rcu()had been removed frompm_netlink.c, so this rcu field in structmptcp_pm_addr_entrybecame useless. Let's drop it.Fixes 1729cf186d8a ("mptcp: create the listening socket for new port")Signed-off-by Geliang Tang <[email protected]>Signed-off-by Mat Martineau <[email protected]>
This just removes a superfluous member, right? So could as well be applied to net-next?
Quoted 6 lines · Jakub Kicinski
Quoted 5 lines · On Mon, 2 Aug 2021 16:19:14 -0700 Mat Martineau wrote:
From: Geliang Tang <[email protected]>
kfree_rcu()had been removed frompm_netlink.c, so this rcu field in structmptcp_pm_addr_entrybecame useless. Let's drop it.
Quoted 7 lines
Quoted 3 lines
Fixes 1729cf186d8a ("mptcp: create the listening socket for new port")Signed-off-by Geliang Tang <[email protected]>Signed-off-by Mat Martineau <[email protected]>This just removes a superfluous member, right? So could as well be applied to net-next?
Hi Jakub -
Yes, it's just a superfluous member.
It seemed like a -net candidate, as it was addressing a mistake in a previous commit (rather than a feature or refactor) and does affect memory usage - and I was trying to be mindful of the stable tree process. But the patch will apply cleanly to either net or net-next, so you could apply to net-next if the fix is not significant enough.
I'll tune my net-vs-net-next threshold based on the tree I see it applied to :)
Thanks!
--
Mat Martineau
Intel
Jakub Kicinski
maintainerQuoted 18 lines · On Tue, 3 Aug 2021 11:11:16 -0700 (PDT) Mat Martineau wrote:
Quoted 6 lines · Jakub Kicinski
Quoted 5 lines · On Mon, 2 Aug 2021 16:19:14 -0700 Mat Martineau wrote:
From: Geliang Tang <[email protected]>
kfree_rcu()had been removed frompm_netlink.c, so this rcu field in structmptcp_pm_addr_entrybecame useless. Let's drop it.Quoted 6 lines
Quoted 3 lines
Fixes 1729cf186d8a ("mptcp: create the listening socket for new port")Signed-off-by Geliang Tang <[email protected]>Signed-off-by Mat Martineau <[email protected]>This just removes a superfluous member, right? So could as well be applied to net-next?
Hi Jakub -
Yes, it's just a superfluous member.
Quoted 8 lines
It seemed like a -net candidate, as it was addressing a mistake in a previous commit (rather than a feature or refactor) and does affect memory usage - and I was trying to be mindful of the stable tree process. But the patch will apply cleanly to either net or net-next, so you could apply to net-next if the fix is not significant enough.
I'll tune my net-vs-net-next threshold based on the tree I see it applied to :)
Alright, applied but without the Fixes tag. Thanks!