diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2020-06-03 18:12:43 +1000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-06 15:51:17 -0700 |
commit | 4a3084aaa88e70a0af0e38b72ca29af32ec6b9c5 (patch) | |
tree | 9fc4d042d8014f89709bb7fce36371365210795d /init/do_mounts_md.c | |
parent | 7f89cc07d22a4152f3c649a89aa8fe240effd24a (diff) |
rhashtable: Drop raw RCU deref in nested_table_free
This patch replaces some unnecessary uses of rcu_dereference_raw
in the rhashtable code with rcu_dereference_protected.
The top-level nested table entry is only marked as RCU because it
shares the same type as the tree entries underneath it. So it
doesn't need any RCU protection.
We also don't need RCU protection when we're freeing a nested RCU
table because by this stage we've long passed a memory barrier
when anyone could change the nested table.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'init/do_mounts_md.c')
0 files changed, 0 insertions, 0 deletions