netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: rtnl: introduce rcu_replace_pointer_rtnl
@ 2023-12-15 17:57 Pedro Tammela
  2023-12-15 17:57 ` [PATCH net-next 1/2] " Pedro Tammela
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Pedro Tammela @ 2023-12-15 17:57 UTC (permalink / raw)
  To: netdev
  Cc: davem, edumazet, kuba, pabeni, horms, jiri, jhs, victor, martin,
	idosch, razor, lucien.xin, edwin.peer, amcohen, Pedro Tammela

Introduce the rcu_replace_pointer_rtnl helper to lockdep check rtnl lock
rcu replacements, alongside the already existing helpers.

Patch 2 uses the new helper in the rtnl_unregister_* functions.

Originally this change was part of the P4TC series, as it's a recurrent
pattern there, but since it has a use case in mainline we are pushing it
separately.

Jamal Hadi Salim (1):
  net: rtnl: introduce rcu_replace_pointer_rtnl

Pedro Tammela (1):
  net: rtnl: use rcu_replace_pointer_rtnl in rtnl_unregister_*

 include/linux/rtnetlink.h | 12 ++++++++++++
 net/core/rtnetlink.c      | 12 +++---------
 2 files changed, 15 insertions(+), 9 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-12-18  2:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-15 17:57 [PATCH net-next 0/2] net: rtnl: introduce rcu_replace_pointer_rtnl Pedro Tammela
2023-12-15 17:57 ` [PATCH net-next 1/2] " Pedro Tammela
2023-12-17 12:17   ` Ido Schimmel
2023-12-17 14:19   ` Nikolay Aleksandrov
2023-12-15 17:57 ` [PATCH net-next 2/2] net: rtnl: use rcu_replace_pointer_rtnl in rtnl_unregister_* Pedro Tammela
2023-12-17 12:18   ` Ido Schimmel
2023-12-17 14:19   ` Nikolay Aleksandrov
2023-12-18  2:11 ` [PATCH net-next 0/2] net: rtnl: introduce rcu_replace_pointer_rtnl patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).