diff options
author | NeilBrown <neilb@suse.de> | 2009-03-31 05:39:39 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-03-31 05:39:39 +0200 |
commit | 91adb56473febeeb3ef657bb5147ddd355465700 (patch) | |
tree | 9ed414dd2bf999d91a536449c01273ee23ddbcfa /drivers/md/raid5.h | |
parent | md: make sure new_level, new_chunksize, new_layout always have sensible values. (diff) | |
download | linux-91adb56473febeeb3ef657bb5147ddd355465700.tar.xz linux-91adb56473febeeb3ef657bb5147ddd355465700.zip |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h index 84456b1af204..c172371481c7 100644 --- a/drivers/md/raid5.h +++ b/drivers/md/raid5.h @@ -386,6 +386,11 @@ struct raid5_private_data { int pool_size; /* number of disks in stripeheads in pool */ spinlock_t device_lock; struct disk_info *disks; + + /* 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 raid5_private_data raid5_conf_t; |