Commit 3ec7906
md/raid5: fix parity corruption on journal failure
When operating in write-through journal mode, a journal device failure
can lead to parity corruption and silent data loss.
This occurs because the current implementation continues to update
parity even when journal writes fail, violating the write-through
consistency guarantee.
Signed-off-by: Meir Elisha <[email protected]>1 parent c321d71 commit 3ec7906
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1146 | 1146 | | |
1147 | 1147 | | |
1148 | 1148 | | |
| 1149 | + | |
1149 | 1150 | | |
1150 | 1151 | | |
1151 | 1152 | | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1152 | 1164 | | |
1153 | 1165 | | |
1154 | 1166 | | |
| |||
3672 | 3684 | | |
3673 | 3685 | | |
3674 | 3686 | | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
3675 | 3694 | | |
3676 | 3695 | | |
3677 | 3696 | | |
| |||
0 commit comments