summaryrefslogtreecommitdiff
path: root/drivers/md/raid10.h
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2025-02-10 15:33:19 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-21 13:57:26 +0100
commit3e41ab9aef120ed172b8bada50839894341f1d7d (patch)
tree7f27f2490488a9dc30bf7c1eb21e68409eb600d4 /drivers/md/raid10.h
parent3b666dad382876f3bb741a62508d20fb94e58631 (diff)
downloadlinux-3e41ab9aef120ed172b8bada50839894341f1d7d.tar.gz
linux-3e41ab9aef120ed172b8bada50839894341f1d7d.tar.bz2
linux-3e41ab9aef120ed172b8bada50839894341f1d7d.zip
md/md-bitmap: remove the last parameter for bimtap_ops->endwrite()
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>
Diffstat (limited to 'drivers/md/raid10.h')
-rw-r--r--drivers/md/raid10.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/raid10.h b/drivers/md/raid10.h
index 2e75e88d0802..3f16ad6904a9 100644
--- a/drivers/md/raid10.h
+++ b/drivers/md/raid10.h
@@ -161,7 +161,6 @@ enum r10bio_state {
R10BIO_IsSync,
R10BIO_IsRecover,
R10BIO_IsReshape,
- R10BIO_Degraded,
/* Set ReadError on bios that experience a read error
* so that raid10d knows what to do with them.
*/