[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: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
NeilBrown 2006-06-26 00:27:39 -07:00 коммит произвёл Linus Torvalds
Родитель 16a53ecc35
Коммит a8a55c387d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;