Skip to contentSkip to conversation

mptcp: drop unused rcu member in mptcp_pm_addr_entry

PATCH In review Mat Martineau 2 participants 4 messages Aug 2, 2021 – Aug 3, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

Fixes 1729cf186d8a ("mptcp: create the listening socket for new port")
---
 net/mptcp/pm_netlink.c | 1 -
 1 file changed, 1 deletion(-)
net/mptcp/pm_netlink.c +0 -1
index d2591ebf01d9..56263c2c4014 100644
@@ -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
maintainer
#1 lore raw
Quoted 8 lines · On Mon, 2 Aug 2021 16:19:14 -0700 Mat Martineau wrote:

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.

Fixes 1729cf186d8a ("mptcp: create the listening socket for new port")

This just removes a superfluous member, right? So could as well be applied to net-next?

#2 lore raw
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 from pm_netlink.c, so this rcu field in struct mptcp_pm_addr_entry became useless. Let's drop it.

Quoted 7 lines
Quoted 3 lines
Fixes 1729cf186d8a ("mptcp: create the listening socket for new port")

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

maintainer
#3 lore raw
Quoted 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 from pm_netlink.c, so this rcu field in struct mptcp_pm_addr_entry became useless. Let's drop it.

Quoted 6 lines
Quoted 3 lines
Fixes 1729cf186d8a ("mptcp: create the listening socket for new port")

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!