md/raid1: support read error check
authorLi Nan <linan122@huawei.com>
Fri, 15 Dec 2023 02:38:52 +0000 (10:38 +0800)
committerSong Liu <song@kernel.org>
Fri, 15 Dec 2023 23:22:15 +0000 (15:22 -0800)
commitca294b34aaf3a417fe9069b174e52508ac918ec8
tree193b9669717323dacf9f03f6250675e1d9c46a22
parent1979dbbe328ca4e1d0f061c94381cfa03388088d
md/raid1: support read error check

After commit 1e50915fe0bb ("raid: improve MD/raid10 handling of correctable
read errors."), rdev will be set to faulty if it reads data error to many
times in raid10. Add this mechanism to raid1 now.

Signed-off-by: Li Nan <linan122@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20231215023852.3478228-3-linan666@huaweicloud.com
drivers/md/raid1.c