From b4924f46c04262e7e80aac27acc5848066393c52 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 10 Jul 2013 11:02:10 +1000 Subject: Don't set 'hold' option for mdstat_read if not needed. We only need 'hold' if we want to mdstat_wait for a change. These two callers don't care about a change, so they shouldn't use the 'hold' flag. Signed-off-by: NeilBrown --- Assemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Assemble.c') diff --git a/Assemble.c b/Assemble.c index adc47866..32e05b03 100644 --- a/Assemble.c +++ b/Assemble.c @@ -48,7 +48,7 @@ static int name_matches(char *found, char *required, char *homehost) static int is_member_busy(char *metadata_version) { /* check if the given member array is active */ - struct mdstat_ent *mdstat = mdstat_read(1, 0); + struct mdstat_ent *mdstat = mdstat_read(0, 0); struct mdstat_ent *ent; int busy = 0; -- cgit v1.2.3