Skip to content

Commit

Permalink
md/raid10: fix assembling of arrays with replacement devices.
Browse files Browse the repository at this point in the history
commit 56a2559 (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: NeilBrown <neilb@suse.de>
  • Loading branch information
neilbrown committed Mar 5, 2012
1 parent fae8cc5 commit 7a90484
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/md/raid10.c
Expand Up @@ -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
Expand Down

0 comments on commit 7a90484

Please sign in to comment.