Skip to content

Conversation

@kpd-daemon
Copy link

@kpd-daemon kpd-daemon bot commented Aug 12, 2025

Pull request for series with
subject: md/raid5: Fix parity corruption on journal failure
version: 1
url: https://patchwork.kernel.org/project/linux-raid/list/?series=990562

A journal device failure can lead to parity corruption and silent data
loss in degraded arrays. This occurs because the current
implementation continues to update the parity even when journal
writes fail.

Fixed this by:
1. In ops_run_io(), check if journal writes failed before proceeding
   with disk writes. Abort write operations when journal is faulty.
2. In handle_failed_stripe(), clear all R5_Want* flags to ensure
   clean state for stripe retry after journal failure.
3. In handle_stripe(), correctly identify write operations that must
   be failed when journal is unavailable.

Signed-off-by: Meir Elisha <meir.elisha@volumez.com>
@kpd-daemon
Copy link
Author

kpd-daemon bot commented Aug 12, 2025

Upstream branch: c17fb54
series: https://patchwork.kernel.org/project/linux-raid/list/?series=990562
version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant