Raid0: detect reshape on array start

When raid0 array is takeovered to raid4 for reshape it should be possible to detect
that array for reshape is monitored now for metadata update.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Adam Kwolek 2011-01-06 19:27:25 +11:00 committed by NeilBrown
parent 89c6788213
commit 4867e068e3
1 changed files with 7 additions and 0 deletions

View File

@ -235,6 +235,13 @@ static int read_and_act(struct active_array *a)
}
}
if (a->curr_state > inactive &&
a->prev_state == inactive) {
/* array has been started
* possible that container operation has to be completed
*/
a->container->ss->set_array_state(a, 0);
}
if (a->curr_state <= inactive &&
a->prev_state > inactive) {
/* array has been stopped */