Re: [PATCH] rhashtable: Add rht_ptr_rcu and improve rht_ptr

2019-05-29 Thread David Miller
From: Herbert Xu Date: Tue, 28 May 2019 15:02:31 +0800 > This patch moves common code between rht_ptr and rht_ptr_exclusive > into __rht_ptr. It also adds a new helper rht_ptr_rcu exclusively > for the RCU case. This way rht_ptr becomes a lock-only construct > so we can use the lighter rcu_dere

[PATCH] rhashtable: Add rht_ptr_rcu and improve rht_ptr

2019-05-28 Thread Herbert Xu
This patch moves common code between rht_ptr and rht_ptr_exclusive into __rht_ptr. It also adds a new helper rht_ptr_rcu exclusively for the RCU case. This way rht_ptr becomes a lock-only construct so we can use the lighter rcu_dereference_protected primitive. Signed-off-by: Herbert Xu --- i