diff options
-rw-r--r-- | drivers/md/md.c | 4 |
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 |