diff --git a/drivers/md/md.c b/drivers/md/md.c index 48afe4f7ad4c2d3538b85ec8234abfdd7c194845..8d11cd1a0d8b182fda9a9b99b0056cd03f58a361 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -6237,7 +6237,11 @@ static int md_notify_reboot(struct notifier_block *this, for_each_mddev(mddev, tmp) if (mddev_trylock(mddev)) { - do_md_stop (mddev, 1, 0); + /* Force a switch to readonly even array + * appears to still be in use. Hence + * the '100'. + */ + do_md_stop (mddev, 1, 100); mddev_unlock(mddev); } /*