]> Git Repo - linux.git/commitdiff
[PATCH] md: clear the 'recovery' flags when starting an md array.
authorNeilBrown <[email protected]>
Sat, 27 Aug 2005 01:34:16 +0000 (18:34 -0700)
committerLinus Torvalds <[email protected]>
Sat, 27 Aug 2005 02:37:13 +0000 (19:37 -0700)
It's possible for this to still have flags in it and a previous instance
has been stopped, and that confused the new array using the same mddev.

Signed-off-by: Neil Brown <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/md/md.c

index deccd560c0dea57a6fef0db5da1b26cab58e86cf..20ca80b7dc20611de86d418faf8da69140fd764a 100644 (file)
@@ -1689,6 +1689,7 @@ static int do_md_run(mddev_t * mddev)
        mddev->pers = pers[pnum];
        spin_unlock(&pers_lock);
 
+       mddev->recovery = 0;
        mddev->resync_max_sectors = mddev->size << 1; /* may be over-ridden by personality */
 
        /* before we start the array running, initialise the bitmap */
This page took 0.048451 seconds and 4 git commands to generate.