raid5: Use sequence counter with associated spinlock
[sfrench/cifs-2.6.git] / drivers / md / raid5.h
index f90e0704bed994604f52fa31e0f27c10e1009de2..a2c9e9e9f5ac8346c07a7d72ddf3960fa82e0238 100644 (file)
@@ -589,7 +589,7 @@ struct r5conf {
        int                     prev_chunk_sectors;
        int                     prev_algo;
        short                   generation; /* increments with every reshape */
-       seqcount_t              gen_lock;       /* lock against generation changes */
+       seqcount_spinlock_t     gen_lock;       /* lock against generation changes */
        unsigned long           reshape_checkpoint; /* Time we last updated
                                                     * metadata */
        long long               min_offset_diff; /* minimum difference between