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@xxxxxxxxx> --- super-intel.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/super-intel.c b/super-intel.c index f07665b..58ed702 100644 --- a/super-intel.c +++ b/super-intel.c @@ -4894,6 +4894,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. @@ -4928,7 +4929,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 */ -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html