rcu: Implement a variant of Peter's SRCU algorithm
[deliverable/linux.git] / include / linux / srcu.h
index 5b49d41868c83fc926c62b694f979cb3f8e480e4..15354db3e8654759c99209bcfb1849d5da504d13 100644 (file)
 
 struct srcu_struct_array {
        unsigned long c[2];
+       unsigned long seq[2];
 };
 
-/* Bit definitions for field ->c above and ->snap below. */
-#define SRCU_USAGE_BITS                1
-#define SRCU_REF_MASK          (ULONG_MAX >> SRCU_USAGE_BITS)
-#define SRCU_USAGE_COUNT       (SRCU_REF_MASK + 1)
-
 struct srcu_struct {
        unsigned completed;
        struct srcu_struct_array __percpu *per_cpu_ref;
        struct mutex mutex;
-       unsigned long snap[NR_CPUS];
 #ifdef CONFIG_DEBUG_LOCK_ALLOC
        struct lockdep_map dep_map;
 #endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
This page took 0.02548 seconds and 5 git commands to generate.