From 0c0c44db5ae98452c9c69bffc35b031c9fd7acea Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 15 Sep 2008 20:58:42 -0700 Subject: [PATCH] monitor: don't mark dirty on resync complete ...instead look at array state to determine if the array is consistent Signed-off-by: Dan Williams --- monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor.c b/monitor.c index ecf0528..a1d87e1 100644 --- a/monitor.c +++ b/monitor.c @@ -268,7 +268,7 @@ static int read_and_act(struct active_array *a) * Just check if we need to fiddle spares. */ get_resync_start(a); - a->container->ss->set_array_state(a, 0); + a->container->ss->set_array_state(a, a->curr_state <= clean); check_degraded = 1; }