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@xxxxxxxxx> --- monitor.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index 937cc6b..a0068d3 100644 --- a/monitor.c +++ b/monitor.c @@ -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 */ -- 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