On Wed, 19 Jan 2011 17:23:49 +0100 Krzysztof Wojcik <krzysztof.wojcik@xxxxxxxxx> wrote: > Missing condition during setting next state for disk. Yet again you completely fail to explain why you want to make this change. And again it looks wrong. There is no harm is setting "-blocked" if the device is not actually blocked is there? PLEASE PLEASE PLEASE explain exactly the problem you are trying to fix. Don't waste my time and yours by making have to continually ask for explanations. NeilBrown > > 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