mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 05:34:13 +08:00
Merge branch 'for-linus' of git://neil.brown.name/md
* 'for-linus' of git://neil.brown.name/md: md/raid10: Fix bug when activating a hot-spare.
This commit is contained in:
commit
571109f536
@ -1355,7 +1355,7 @@ static int raid10_add_disk(struct mddev *mddev, struct md_rdev *rdev)
|
||||
struct mirror_info *p = &conf->mirrors[mirror];
|
||||
if (p->recovery_disabled == mddev->recovery_disabled)
|
||||
continue;
|
||||
if (!p->rdev)
|
||||
if (p->rdev)
|
||||
continue;
|
||||
|
||||
disk_stack_limits(mddev->gendisk, rdev->bdev,
|
||||
|
Loading…
Reference in New Issue
Block a user