diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 48afe4f7ad4c..8d11cd1a0d8b 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -6237,7 +6237,11 @@ static int md_notify_reboot(struct notifier_block *this, | |||
6237 | 6237 | ||
6238 | for_each_mddev(mddev, tmp) | 6238 | for_each_mddev(mddev, tmp) |
6239 | if (mddev_trylock(mddev)) { | 6239 | if (mddev_trylock(mddev)) { |
6240 | do_md_stop (mddev, 1, 0); | 6240 | /* Force a switch to readonly even array |
6241 | * appears to still be in use. Hence | ||
6242 | * the '100'. | ||
6243 | */ | ||
6244 | do_md_stop (mddev, 1, 100); | ||
6241 | mddev_unlock(mddev); | 6245 | mddev_unlock(mddev); |
6242 | } | 6246 | } |
6243 | /* | 6247 | /* |