]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Don't set 'hold' option for mdstat_read if not needed.
authorNeilBrown <neilb@suse.de>
Wed, 10 Jul 2013 01:02:10 +0000 (11:02 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 10 Jul 2013 01:02:10 +0000 (11:02 +1000)
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 <neilb@suse.de>
Assemble.c
config.c

index adc47866c1da33b1e4a0d3f223c9977564d67d44..32e05b0344e70a36fa1ea537ac8ddc8376e5595b 100644 (file)
@@ -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;
 
index 5c8b03a3838d7a1548aef5a2b326663ef097b399..2c7bb63c87581b22b2b6ea0986b6c2329317b7da 100644 (file)
--- a/config.c
+++ b/config.c
@@ -150,7 +150,7 @@ struct mddev_dev *load_partitions(void)
 
 struct mddev_dev *load_containers(void)
 {
-       struct mdstat_ent *mdstat = mdstat_read(1, 0);
+       struct mdstat_ent *mdstat = mdstat_read(0, 0);
        struct mdstat_ent *ent;
        struct mddev_dev *d;
        struct mddev_dev *rv = NULL;