diff options
| author | Yu Kuai <yukuai3@huawei.com> | 2025-01-09 09:51:42 +0800 |
|---|---|---|
| committer | Song Liu <song@kernel.org> | 2025-01-13 08:56:10 -0800 |
| commit | 4f0e7d0e03b7b80af84759a9e7cfb0f81ac4adae (patch) | |
| tree | 0487d4748e8a2f4287fd42d73bd6e9b574a31a51 /drivers/md/raid1.h | |
| parent | 08c50142a128dcb2d7060aa3b4c5db8837f7a46a (diff) | |
md/md-bitmap: remove the last parameter for bimtap_ops->endwrite()
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>
Diffstat (limited to 'drivers/md/raid1.h')
| -rw-r--r-- | drivers/md/raid1.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/raid1.h b/drivers/md/raid1.h index 5300cbaa58a4..33f318fcc268 100644 --- a/drivers/md/raid1.h +++ b/drivers/md/raid1.h @@ -188,7 +188,6 @@ struct r1bio { enum r1bio_state { R1BIO_Uptodate, R1BIO_IsSync, - R1BIO_Degraded, R1BIO_BehindIO, /* Set ReadError on bios that experience a readerror so that * raid1d knows what to do with them. |