Thread (4 messages) 4 messages, 4 authors, 2023-05-24

Re: [PATCH] md/raid5: fix miscalculation of 'end_sector' in raid5_read_one_chunk()

From: Song Liu <song@kernel.org>
Date: 2023-05-24 17:23:52
Also in: lkml

On Wed, May 24, 2023 at 8:03 AM Jens Axboe [off-list ref] wrote:
On 5/23/23 7:41 PM, Yu Kuai wrote:
quoted
From: Yu Kuai <redacted>

'end_sector' is compared to 'rdev->recovery_offset', which is offset to
rdev, however, commit e82ed3a4fbb5 ("md/raid6: refactor
raid5_read_one_chunk") changes the calculation of 'end_sector' to offset
to the array. Fix this miscalculation.

Fixes: e82ed3a4fbb5 ("md/raid6: refactor raid5_read_one_chunk")
This needs a stable tag as well, Fixes alone is not enough to guarantee
it ends up in stable.

Song, are you picking this up?
Yes, I will test it and send it via md-fixes.

Thanks,
Song
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help