aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-05-25 20:39:25 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-05-26 14:52:11 -0400
commitc71d48877e6f3d5e3eb22fcaaa612081bce3d089 (patch)
tree2adf081ab975f2f1f33b5ba1c04163fcbdf02077 /drivers/md/md.c
parent309c68cc17ba1f6f733038562b7469b5340e1a1d (diff)
[PATCH] Unlock md devices when stopping them on reboot.
otherwise we get nasty messages about locks not being released. Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 3ca3cfb03a7e..ec802913f977 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -5028,8 +5028,10 @@ static int md_notify_reboot(struct notifier_block *this,
5028 printk(KERN_INFO "md: stopping all md devices.\n"); 5028 printk(KERN_INFO "md: stopping all md devices.\n");
5029 5029
5030 ITERATE_MDDEV(mddev,tmp) 5030 ITERATE_MDDEV(mddev,tmp)
5031 if (mddev_trylock(mddev)) 5031 if (mddev_trylock(mddev)) {
5032 do_md_stop (mddev, 1); 5032 do_md_stop (mddev, 1);
5033 mddev_unlock(mddev);
5034 }
5033 /* 5035 /*
5034 * certain more exotic SCSI devices are known to be 5036 * certain more exotic SCSI devices are known to be
5035 * volatile wrt too early system reboots. While the 5037 * volatile wrt too early system reboots. While the