Commit 8557dc2
md/raid5: fix miscalculation of 'end_sector' in raid5_read_one_chunk()
'end_sector' is compared to 'rdev->recovery_offset', which is offset to
rdev, however, commit e82ed3a ("md/raid6: refactor
raid5_read_one_chunk") changes the calculation of 'end_sector' to offset
to the array. Fix this miscalculation.
Fixes: e82ed3a ("md/raid6: refactor raid5_read_one_chunk")
Cc: [email protected] # v5.12+
Signed-off-by: Yu Kuai <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 3eb9694 commit 8557dc2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5516 | 5516 | | |
5517 | 5517 | | |
5518 | 5518 | | |
5519 | | - | |
| 5519 | + | |
5520 | 5520 | | |
5521 | 5521 | | |
5522 | 5522 | | |
| |||
0 commit comments