rhashtable: Free bucket tables asynchronously after rehash
[deliverable/linux.git] / include / linux / rhashtable.h
index 4192682c1d5c3681d063e999fe4d150c8fded4b1..a0abddd226b382d93062369cc87ae309ea4a5450 100644 (file)
@@ -54,6 +54,7 @@ struct rhash_head {
  * @locks_mask: Mask to apply before accessing locks[]
  * @locks: Array of spinlocks protecting individual buckets
  * @walkers: List of active walkers
+ * @rcu: RCU structure for freeing the table
  * @buckets: size * hash buckets
  */
 struct bucket_table {
@@ -63,6 +64,7 @@ struct bucket_table {
        unsigned int            locks_mask;
        spinlock_t              *locks;
        struct list_head        walkers;
+       struct rcu_head         rcu;
 
        struct rhash_head __rcu *buckets[] ____cacheline_aligned_in_smp;
 };
This page took 0.030217 seconds and 5 git commands to generate.