Re: [PATCH 0/8] md/raid1,raid10: fix writes acknowledged before a failure is recorded

From: Miroslav Cimerman

Date: Sun Nov 29 2026 - 15:07:25 EST


Hi Kuai,

yu kuai <yukuai@xxxxxxx> wrote:

> I don't think we should take this series for now. Device can fail at any time,
> we should not complicate already complex error paths for extreme cases with little
> benefit, specially no demonstrated correctness problem.
>
> Please separate actual bugs and keep the fixes minimal.

OK, I will drop patches 3 to 8 for now, and send patch 2 together with
standalone fixes for the Sashiko findings and some additional bug
fixes.

Some answers to your questions regarding the other patches:

3/8: You are right that the check after the wait does not close the
window. But I thought that an application that relies on the
return code of the write could notice the failure earlier in the
cases that the check catches.

4/8: The write completes with success although no working device has
its data. Same motivation as 3/8: with the patch the application
gets the error from the write, not later from a read.

5-8/8: Each closes a window in which a write completes before md
records a failed device. If the array also loses another device
or power inside that window, reads can return the old data
although the write completed with success. These patches prevent
that.

Would you like me to send patch 1 as a standalone patch? It prevents a
silent data loss: after a restart both disks assemble as in sync, and
reads return the old data of a write that completed with success.

Miroslav