raid10: improve random reads performance
[cascardo/linux.git] / drivers / md / raid10.h
index 6fc2c75..18ec1f7 100644 (file)
@@ -64,10 +64,11 @@ struct r10conf {
        int                     pending_count;
 
        spinlock_t              resync_lock;
-       int                     nr_pending;
+       atomic_t                nr_pending;
        int                     nr_waiting;
        int                     nr_queued;
        int                     barrier;
+       int                     array_freeze_pending;
        sector_t                next_resync;
        int                     fullsync;  /* set to 1 if a full sync is needed,
                                            * (fresh device added).