md/raid1: fix buglet in md_raid1_contested.
authorNeilBrown <neilb@suse.de>
Mon, 13 Feb 2012 03:24:05 +0000 (14:24 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 13 Feb 2012 03:24:05 +0000 (14:24 +1100)
commitf53e29fc87b6fb76db0043202ec2c3450caa5ff3
treeb1f8705e420775a40ebb2f26132fe27184b82fbb
parentdb91ff55bdf06736b849afc1b1fce5763bbb8d5d
md/raid1: fix buglet in md_raid1_contested.

Since we added 'replacement' capability, RAID1 can have twice
as many devices as ->raid_disks indicates.
So md_raid1_congested needs to check that many possible devices,
not just ->raid_disks many.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c