commit | 279758f8001f0014b15656a4ef130a20852f6df6 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Tue May 28 15:02:31 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Wed May 29 13:27:08 2019 -0700 |
tree | 0a3fe4267433d9b51940e04ad68ea2f7b85d03a1 | |
parent | af64935213c42245e7937af0e4a359e1be7946b2 [diff] |
rhashtable: Add rht_ptr_rcu and improve rht_ptr 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 <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>