From: NeilBrown Date: Sat, 27 Aug 2005 01:34:16 +0000 (-0700) Subject: [PATCH] md: clear the 'recovery' flags when starting an md array. X-Git-Tag: Ubuntu-5.2.0-15.16~57484 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=657390d25d4241705cb4fc5b3b4ba5b30575dc17;p=mirror_ubuntu-eoan-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/md.c b/drivers/md/md.c index deccd560c0de..20ca80b7dc20 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -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 */