Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8a55c38 authored by NeilBrown's avatar NeilBrown Committed by Linus Torvalds
Browse files

[PATCH] md: remove nuisance message at shutdown



At shutdown, we switch all arrays to read-only, which creates a message for
every instantiated array, even those which aren't actually active.

So remove the message for non-active arrays.

Signed-off-by: default avatarNeil Brown <neilb@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 16a53ecc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2911,7 +2911,7 @@ static int do_md_stop(mddev_t * mddev, int ro)
		if (disk)
			set_capacity(disk, 0);
		mddev->changed = 1;
	} else
	} else if (mddev->pers)
		printk(KERN_INFO "md: %s switched to read-only mode.\n",
			mdname(mddev));
	err = 0;