md: fix bug in raid10 recovery.
authorNeil Brown <neilb@suse.de>
Fri, 7 Nov 2008 00:08:12 +0000 (00:08 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Nov 2008 17:55:57 +0000 (09:55 -0800)
commit4ad8ad6f94ed1eb8abcb5a4001cef9da92bc84c2
treeeb47c881f501eab121e1b16f6bd16dcf9c20b14a
parent83e387d13a81dab114b5f818f3c4abafcb9c7d2c
md: fix bug in raid10 recovery.

commit a53a6c85756339f82ff19e001e90cfba2d6299a8 upstream

Adding a spare to a raid10 doesn't cause recovery to start.
This is due to an silly type in
  commit 6c2fce2ef6b4821c21b5c42c7207cb9cf8c87eda
and so is a bug in 2.6.27 and .28-rc.

Thanks to Thomas Backlund for bisecting to find this.

Cc: Thomas Backlund <tmb@mandriva.org>
Cc: George Spelvin <linux@horizon.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/raid10.c