aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 13dd7b276150..fc33082d5ffd 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -2725,9 +2725,9 @@ array_state_store(mddev_t *mddev, const char *buf, size_t len)
2725 break; 2725 break;
2726 case read_auto: 2726 case read_auto:
2727 if (mddev->pers) { 2727 if (mddev->pers) {
2728 if (mddev->ro != 1) 2728 if (mddev->ro == 0)
2729 err = do_md_stop(mddev, 1, 0); 2729 err = do_md_stop(mddev, 1, 0);
2730 else 2730 else if (mddev->ro == 1)
2731 err = restart_array(mddev); 2731 err = restart_array(mddev);
2732 if (err == 0) { 2732 if (err == 0) {
2733 mddev->ro = 2; 2733 mddev->ro = 2;