summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-06-03 11:12:43 +0300
committerDavid S. Miller <davem@davemloft.net>2020-06-07 01:51:17 +0300
commit4a3084aaa88e70a0af0e38b72ca29af32ec6b9c5 (patch)
tree9fc4d042d8014f89709bb7fce36371365210795d /drivers/net
parent7f89cc07d22a4152f3c649a89aa8fe240effd24a (diff)
downloadlinux-4a3084aaa88e70a0af0e38b72ca29af32ec6b9c5.tar.xz
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 'drivers/net')
0 files changed, 0 insertions, 0 deletions