aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-03-30 23:39:39 -0400
committerNeilBrown <neilb@suse.de>2009-03-30 23:39:39 -0400
commit91adb56473febeeb3ef657bb5147ddd355465700 (patch)
tree9ed414dd2bf999d91a536449c01273ee23ddbcfa /drivers/md/raid5.h
parent34817e8c3948ea20316dfa8fd8947d6d0ee82ba9 (diff)
md/raid5: refactor raid5 "run"
.. so that the code to create the private data structures is separate. This will help with future code to change the level of an active array. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r--drivers/md/raid5.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h
index 84456b1af20..c172371481c 100644
--- a/drivers/md/raid5.h
+++ b/drivers/md/raid5.h
@@ -386,6 +386,11 @@ struct raid5_private_data {
386 int pool_size; /* number of disks in stripeheads in pool */ 386 int pool_size; /* number of disks in stripeheads in pool */
387 spinlock_t device_lock; 387 spinlock_t device_lock;
388 struct disk_info *disks; 388 struct disk_info *disks;
389
390 /* When taking over an array from a different personality, we store
391 * the new thread here until we fully activate the array.
392 */
393 struct mdk_thread_s *thread;
389}; 394};
390 395
391typedef struct raid5_private_data raid5_conf_t; 396typedef struct raid5_private_data raid5_conf_t;