imsm: Finalize reshape in metadata

When reshape is finished monitor calls set_array_state() and finishes migration in metadata.
This change allows for finishing metadata migration on reshape end.

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 18:29:07 +11:00 committed by NeilBrown
parent 7477d51305
commit a4546b6189
1 changed files with 1 additions and 1 deletions

View File

@ -4882,6 +4882,7 @@ static int imsm_set_array_state(struct active_array *a, int consistent)
dev->vol.curr_migr_unit = __cpu_to_le32(unit);
super->updates_pending++;
}
return 0;
} else {
if (a->last_checkpoint == 0 && a->prev_action == reshape) {
/* for some reason we aborted the reshape.
@ -4916,7 +4917,6 @@ static int imsm_set_array_state(struct active_array *a, int consistent)
super->updates_pending++;
}
}
return 0;
}
/* before we activate this array handle any missing disks */