]> err.no Git - linux-2.6/commitdiff
[PATCH] md: clear the 'recovery' flags when starting an md array.
authorNeilBrown <neilb@cse.unsw.edu.au>
Sat, 27 Aug 2005 01:34:16 +0000 (18:34 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
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 <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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 */