Message ID | 1403641825-12825-6-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/md/md.c b/drivers/md/md.c index 8e27791..cb8f03a 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -8441,7 +8441,8 @@ static int md_notify_reboot(struct notifier_block *this, if (mddev_trylock(mddev)) { if (mddev->pers) __md_stop_writes(mddev); - mddev->safemode = 2; + if (mddev->persistent) + mddev->safemode = 2; mddev_unlock(mddev); } need_delay = 1;