raid5: check faulty flag for array status during recovery.
authorEric Mei <eric.mei@seagate.com>
Tue, 6 Jan 2015 17:35:02 +0000 (09:35 -0800)
committerNeilBrown <neilb@suse.de>
Wed, 25 Feb 2015 00:38:26 +0000 (11:38 +1100)
commit16d9cfab930bb6f4946cff8ba7429701fd15b414
treea1a31cbe4685b2d49eebd883a402cb0727685391
parentd1901ef099c38afd11add4cfb3312c02ef21ec4a
raid5: check faulty flag for array status during recovery.

When we have more than 1 drive failure, it's possible we start
rebuild one drive while leaving another faulty drive in array.
To determine whether array will be optimal after building, current
code only check whether a drive is missing, which could potentially
lead to data corruption. This patch is to add checking Faulty flag.

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