提交 c71d4887 编写于 作者: N Neil Brown 提交者: Linus Torvalds

[PATCH] Unlock md devices when stopping them on reboot.

otherwise we get nasty messages about locks not being released.
Signed-off-by: NNeil Brown <neilb@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 309c68cc
...@@ -5028,8 +5028,10 @@ static int md_notify_reboot(struct notifier_block *this, ...@@ -5028,8 +5028,10 @@ static int md_notify_reboot(struct notifier_block *this,
printk(KERN_INFO "md: stopping all md devices.\n"); printk(KERN_INFO "md: stopping all md devices.\n");
ITERATE_MDDEV(mddev,tmp) ITERATE_MDDEV(mddev,tmp)
if (mddev_trylock(mddev)) if (mddev_trylock(mddev)) {
do_md_stop (mddev, 1); do_md_stop (mddev, 1);
mddev_unlock(mddev);
}
/* /*
* certain more exotic SCSI devices are known to be * certain more exotic SCSI devices are known to be
* volatile wrt too early system reboots. While the * volatile wrt too early system reboots. While the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册