Re: [PATCH] rhashtable: Drop raw RCU deref in nested_table_free

2020-06-06 Thread David Miller
From: Herbert Xu Date: Wed, 3 Jun 2020 18:12:43 +1000 > 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 under

[PATCH] rhashtable: Drop raw RCU deref in nested_table_free

2020-06-03 Thread Herbert Xu
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 n