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:
parent
89c6788213
commit
4867e068e3
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue