Missing condition during setting next state for disk. Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@xxxxxxxxx> --- monitor.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/monitor.c b/monitor.c index ed3ce49..4fba5fd 100644 --- a/monitor.c +++ b/monitor.c @@ -336,7 +336,9 @@ static int read_and_act(struct active_array *a) a->container->ss->set_disk(a, mdi->disk.raid_disk, mdi->curr_state); check_degraded = 1; - mdi->next_state |= DS_UNBLOCK; + /* if '-blocked' wasn't passed to kernel, do it now */ + if (mdi->curr_state == DS_BLOCKED) + mdi->next_state |= DS_UNBLOCK; if (a->curr_state == read_auto) { a->container->ss->set_array_state(a, 0); a->next_state = active; -- 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