md/raid10: ensure device failure recorded before write request returns.
[pandora-kernel.git] / drivers / md / raid10.h
index 5ee6473..6fc2c75 100644 (file)
@@ -53,6 +53,12 @@ struct r10conf {
        sector_t                offset_diff;
 
        struct list_head        retry_list;
+       /* A separate list of r1bio which just need raid_end_bio_io called.
+        * This mustn't happen for writes which had any errors if the superblock
+        * needs to be written.
+        */
+       struct list_head        bio_end_io_list;
+
        /* queue pending writes and submit them on unplug */
        struct bio_list         pending_bio_list;
        int                     pending_count;