diff options
Diffstat (limited to 'include/linux/raid')
-rw-r--r-- | include/linux/raid/raid10.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/raid/raid10.h b/include/linux/raid/raid10.h index 08317b77802b..b660cbf628d8 100644 --- a/include/linux/raid/raid10.h +++ b/include/linux/raid/raid10.h | |||
@@ -35,13 +35,19 @@ struct r10_private_data_s { | |||
35 | sector_t chunk_mask; | 35 | sector_t chunk_mask; |
36 | 36 | ||
37 | struct list_head retry_list; | 37 | struct list_head retry_list; |
38 | /* for use when syncing mirrors: */ | 38 | /* queue pending writes and submit them on unplug */ |
39 | struct bio_list pending_bio_list; | ||
40 | |||
39 | 41 | ||
40 | spinlock_t resync_lock; | 42 | spinlock_t resync_lock; |
41 | int nr_pending; | 43 | int nr_pending; |
42 | int nr_waiting; | 44 | int nr_waiting; |
43 | int barrier; | 45 | int barrier; |
44 | sector_t next_resync; | 46 | sector_t next_resync; |
47 | int fullsync; /* set to 1 if a full sync is needed, | ||
48 | * (fresh device added). | ||
49 | * Cleared when a sync completes. | ||
50 | */ | ||
45 | 51 | ||
46 | wait_queue_head_t wait_barrier; | 52 | wait_queue_head_t wait_barrier; |
47 | 53 | ||
@@ -100,4 +106,5 @@ struct r10bio_s { | |||
100 | #define R10BIO_Uptodate 0 | 106 | #define R10BIO_Uptodate 0 |
101 | #define R10BIO_IsSync 1 | 107 | #define R10BIO_IsSync 1 |
102 | #define R10BIO_IsRecover 2 | 108 | #define R10BIO_IsRecover 2 |
109 | #define R10BIO_Degraded 3 | ||
103 | #endif | 110 | #endif |