X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fmd%2Fraid10.h;h=3824a087e17c65efe0ee327772f7fa699fb41f22;hb=fa190ee91fcc3800f2c5d14810dc1b48a4b5d4e5;hp=59cd1efb8d304cc5c394f05cdfc7e650ebf9186a;hpb=08229de4b42816079ed5d15f0689fcd0af946d5e;p=~andy%2Flinux diff --git a/drivers/md/raid10.h b/drivers/md/raid10.h index 59cd1efb8d3..3824a087e17 100644 --- a/drivers/md/raid10.h +++ b/drivers/md/raid10.h @@ -33,9 +33,16 @@ struct r10_private_data_s { * 1 stripe. */ + sector_t dev_sectors; /* temp copy of mddev->dev_sectors */ + int chunk_shift; /* shift from chunks to sectors */ sector_t chunk_mask; + int scale_disks; /* When starting array, multiply + * each ->raid_disk by this. + * Need for raid0->raid10 migration + */ + struct list_head retry_list; /* queue pending writes and submit them on unplug */ struct bio_list pending_bio_list; @@ -57,6 +64,11 @@ struct r10_private_data_s { mempool_t *r10bio_pool; mempool_t *r10buf_pool; struct page *tmppage; + + /* When taking over an array from a different personality, we store + * the new thread here until we fully activate the array. + */ + struct mdk_thread_s *thread; }; typedef struct r10_private_data_s conf_t;