aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-06-03 18:12:43 +1000
committerDavid S. Miller <davem@davemloft.net>2020-06-06 15:51:17 -0700
commit4a3084aaa88e70a0af0e38b72ca29af32ec6b9c5 (patch)
tree9fc4d042d8014f89709bb7fce36371365210795d /scripts
parentcxgb4: Use kfree() instead kvfree() where appropriate (diff)
downloadwireguard-linux-4a3084aaa88e70a0af0e38b72ca29af32ec6b9c5.tar.xz
wireguard-linux-4a3084aaa88e70a0af0e38b72ca29af32ec6b9c5.zip
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 'scripts')
0 files changed, 0 insertions, 0 deletions