summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Brown <neilb@cse.unsw.edu.au>2003-02-17 03:17:30 -0800
committerJames Bottomley <jejb@raven.il.steeleye.com>2003-02-17 03:17:30 -0800
commita562496a3a53ff98fbd25a8ef247fe935e5338a7 (patch)
tree3f7201e18d5e9ecb0b017cc6edd5bd27dd77b86d
parent787ba09c145ed4d2dc39f22a158343ff64d6b5cb (diff)
[PATCH] Small bug fix for multipath.
by the nature of multipath, already be in-sync, so we should set the in-sync flag.
-rw-r--r--drivers/md/multipath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c
index 137e23ff22e4..5b96e4a42d21 100644
--- a/drivers/md/multipath.c
+++ b/drivers/md/multipath.c
@@ -283,6 +283,7 @@ static int multipath_add_disk(mddev_t *mddev, mdk_rdev_t *rdev)
p->rdev = rdev;
conf->working_disks++;
rdev->raid_disk = path;
+ rdev->in_sync = 1;
found = 1;
}
spin_unlock_irq(&conf->device_lock);