diff options
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 7862231a0750..d2aff7209070 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -4357,7 +4357,7 @@ static int do_md_run(mddev_t * mddev) | |||
4357 | mddev->barriers_work = 1; | 4357 | mddev->barriers_work = 1; |
4358 | mddev->ok_start_degraded = start_dirty_degraded; | 4358 | mddev->ok_start_degraded = start_dirty_degraded; |
4359 | 4359 | ||
4360 | if (start_readonly) | 4360 | if (start_readonly && mddev->ro == 0) |
4361 | mddev->ro = 2; /* read-only, but switch on first write */ | 4361 | mddev->ro = 2; /* read-only, but switch on first write */ |
4362 | 4362 | ||
4363 | err = mddev->pers->run(mddev); | 4363 | err = mddev->pers->run(mddev); |