aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2006-06-26 03:27:39 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 12:58:37 -0400
commita8a55c387da28d67d98f56e4f5021462cb61f7a6 (patch)
treeb45bc26d02ed060a6d902beedd236f5ee436b041 /drivers
parent16a53ecc35f2a80dc285be2e769768847d89ca37 (diff)
[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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index ad576ad2ca76..71d46eb2c438 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -2911,7 +2911,7 @@ static int do_md_stop(mddev_t * mddev, int ro)
2911 if (disk) 2911 if (disk)
2912 set_capacity(disk, 0); 2912 set_capacity(disk, 0);
2913 mddev->changed = 1; 2913 mddev->changed = 1;
2914 } else 2914 } else if (mddev->pers)
2915 printk(KERN_INFO "md: %s switched to read-only mode.\n", 2915 printk(KERN_INFO "md: %s switched to read-only mode.\n",
2916 mdname(mddev)); 2916 mdname(mddev));
2917 err = 0; 2917 err = 0;