mbox series

[net-next,0/2] net: rtnl: introduce rcu_replace_pointer_rtnl

Message ID 20231215175711.323784-1-pctammela@mojatatu.com (mailing list archive)
Headers show
Series net: rtnl: introduce rcu_replace_pointer_rtnl | expand

Message

Pedro Tammela Dec. 15, 2023, 5:57 p.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org Dec. 18, 2023, 2:11 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Fri, 15 Dec 2023 14:57:09 -0300 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,1/2] net: rtnl: introduce rcu_replace_pointer_rtnl
    https://git.kernel.org/netdev/net-next/c/32da0f00ddcb
  - [net-next,2/2] net: rtnl: use rcu_replace_pointer_rtnl in rtnl_unregister_*
    https://git.kernel.org/netdev/net-next/c/174523479aae

You are awesome, thank you!