Message ID | 1403041331-8127-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/md/md.c b/drivers/md/md.c index 369d919..ddb71d8 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -8496,7 +8496,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;