skip match_mddev_units check for special roles
authorSong Liu <songliubraving@fb.com>
Fri, 4 Sep 2015 06:00:35 +0000 (23:00 -0700)
committerNeilBrown <neilb@suse.com>
Sun, 1 Nov 2015 02:48:27 +0000 (13:48 +1100)
commit0b020e85bdd5765aac2440848e7a927069f5f83c
tree7e8801049e7b6de1ccdc6e280402ee666d74400b
parent253f9fd41afe2492b85de779946b5882a00dcdc5
skip match_mddev_units check for special roles

match_mddev_units is used to check whether 2 RAID arrays share
same disk(s). Arrays that share disk(s) will not do resync at the
same time for better performance (fewer HDD seek). However, this
check should not apply to Spare, Faulty, and Journal disks, as
they do not paticipate in resync.

In this patch, match_mddev_units skips check for disks with flag
"Faulty" or "Journal" or raid_disk < 0.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md.c