aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/md.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 8ea208847a6d..b2c00ce602b1 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -4517,6 +4517,8 @@ static int add_new_disk(mddev_t * mddev, mdu_disk_info_t *info)
4517 clear_bit(In_sync, &rdev->flags); /* just to be sure */ 4517 clear_bit(In_sync, &rdev->flags); /* just to be sure */
4518 if (info->state & (1<<MD_DISK_WRITEMOSTLY)) 4518 if (info->state & (1<<MD_DISK_WRITEMOSTLY))
4519 set_bit(WriteMostly, &rdev->flags); 4519 set_bit(WriteMostly, &rdev->flags);
4520 else
4521 clear_bit(WriteMostly, &rdev->flags);
4520 4522
4521 rdev->raid_disk = -1; 4523 rdev->raid_disk = -1;
4522 err = bind_rdev_to_array(rdev, mddev); 4524 err = bind_rdev_to_array(rdev, mddev);