Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a904848 authored by NeilBrown's avatar NeilBrown
Browse files

md/raid10: fix assembling of arrays with replacement devices.



commit 56a2559b (md/raid10: recognise replacements ...)
changed 'run' to set ->replacement or ->rdev depending on the
'Replacement' status if the device, but it didn't remove the
old unconditional setting of 'rdev'.  So it was largely ineffective.

So remove that now.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent fae8cc5e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3260,7 +3260,6 @@ static int run(struct mddev *mddev)
			disk->rdev = rdev;
		}

		disk->rdev = rdev;
		disk_stack_limits(mddev->gendisk, rdev->bdev,
				  rdev->data_offset << 9);
		/* as we don't honour merge_bvec_fn, we must never risk