+10
−9
+1
−1
+3
−24
+0
−1
+3
−20
Loading
stable inclusion from stable-v6.6.79 commit 3e41ab9aef120ed172b8bada50839894341f1d7d category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBXANC Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e41ab9aef120ed172b8bada50839894341f1d7d -------------------------------- commit 4f0e7d0e03b7b80af84759a9e7cfb0f81ac4adae upstream. For the case that IO failed for one rdev, the bit will be mark as NEEDED in following cases: 1) If badblocks is set and rdev is not faulty; 2) If rdev is faulty; Case 1) is useless because synchronize data to badblocks make no sense. Case 2) can be replaced with mddev->degraded. Also remove R1BIO_Degraded, R10BIO_Degraded and STRIPE_DEGRADED since case 2) no longer use them. Signed-off-by:Yu Kuai <yukuai3@huawei.com> Link: https://lore.kernel.org/r/20250109015145.158868-3-yukuai1@huaweicloud.com Signed-off-by:
Song Liu <song@kernel.org> [ Resolve minor conflicts ] Signed-off-by:
Yu Kuai <yukuai3@huawei.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 3e41ab9aef120ed172b8bada50839894341f1d7d) Signed-off-by:
Wentao Guan <guanwentao@uniontech.com>