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>
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.
super->updates_pending++;
}
}
- return 0;
}
/* before we activate this array handle any missing disks */