rcuja: implement shadow node hash table
[userspace-rcu.git] / rcuja / rcuja-internal.h
index c03045103484cc4b505b076273ac8901b4524de8..a8402cc3faee8063e0271e45b063307788f229b0 100644 (file)
@@ -33,8 +33,10 @@ struct rcu_ja_node_flag;
  * Shadow node contains mutex and call_rcu head associated with a node.
  */
 struct rcu_ja_shadow_node {
-       pthread_mutex_t lock;   /* mutual exclusion on node */
-       struct rcu_head head;   /* for deferred node and shadow node reclaim */
+       struct cds_lfht_node ht_node;   /* hash table node */
+       struct rcu_ja_node *node;       /* reverse mapping and hash table key */
+       pthread_mutex_t lock;           /* mutual exclusion on node */
+       struct rcu_head head;           /* for deferred node and shadow node reclaim */
 };
 
 struct rcu_ja {
This page took 0.023225 seconds and 4 git commands to generate.