Skip to content

Commit 657390d

Browse files
NeilBrownLinus Torvalds
authored andcommitted
[PATCH] md: clear the 'recovery' flags when starting an md array.
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>
1 parent 7200865 commit 657390d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/md/md.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,6 +1689,7 @@ static int do_md_run(mddev_t * mddev)
16891689
mddev->pers = pers[pnum];
16901690
spin_unlock(&pers_lock);
16911691

1692+
mddev->recovery = 0;
16921693
mddev->resync_max_sectors = mddev->size << 1; /* may be over-ridden by personality */
16931694

16941695
/* before we start the array running, initialise the bitmap */

0 commit comments

Comments
 (0)