diff options
author | Jamal Hadi Salim <jhs@mojatatu.com> | 2023-12-15 14:57:10 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-18 02:05:45 +0000 |
commit | 32da0f00ddcb101730cf242289b2b10ede0e1156 (patch) | |
tree | 8daf166be3fa8a86ed9dd5753d0ea801622f7c47 /drivers/net/ethernet/intel/ice/ice_main.c | |
parent | 54f4c2570a19186dfebd555b163084c1824cf1d6 (diff) |
net: rtnl: introduce rcu_replace_pointer_rtnl
Introduce the rcu_replace_pointer_rtnl helper to lockdep check rtnl lock
rcu replacements, alongside the already existing helpers.
This is a quality of life helper so instead of using:
rcu_replace_pointer(rp, p, lockdep_rtnl_is_held())
.. or the open coded..
rtnl_dereference() / rcu_assign_pointer()
.. or the lazy check version ..
rcu_replace_pointer(rp, p, 1)
Use:
rcu_replace_pointer_rtnl(rp, p)
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions