Skip to content

md/raid5: Fix parity corruption on journal failure#227

Open
kpd-daemon[bot] wants to merge 1 commit into
md-6.16_basefrom
series/990562=>md-6.16
Open

md/raid5: Fix parity corruption on journal failure#227
kpd-daemon[bot] wants to merge 1 commit into
md-6.16_basefrom
series/990562=>md-6.16

Conversation

@kpd-daemon
Copy link
Copy Markdown

@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
Copy Markdown
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.

0 participants