mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 04:14:24 +00:00
Add rcu_dereference_all and rcu_dereference_all_check so that library code such as rhashtable can be used with any RCU variant. As it stands rcu_dereference is used within rashtable, which creates false-positive warnings if the user calls it from another RCU context, such as preempt_disable(). Use the rcu_dereference_all and rcu_dereference_all_check calls in rhashtable to suppress these warnings. Also replace the rcu_dereference_raw calls in the list iterators with rcu_dereference_all to uncover buggy calls. Reported-by: Menglong Dong <[email protected]> Signed-off-by: Herbert Xu <[email protected]> Reviewed-by: Paul E. McKenney <[email protected]> Signed-off-by: Herbert Xu <[email protected]>