]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit29306a632c9686b37284440c644c7d568b43c10c
treea1a31cbe4685b2d49eebd883a402cb0727685391
parent1f5675322688b9fbeeeb782ef68d8b1090e89155
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