Re: [PATCH v4 3/7] md/raid10: consistently fail atomic writes that require splitting

From: John Garry

Date: Wed Jul 15 2026 - 05:27:35 EST


On 10/07/2026 11:15, Abd-Alrhman Masalkhi wrote:
RAID10 currently handles one badblock path explicitly by failing atomic
writes with EIO. However, another badblock path can also reduce the
writable range and force the bio through bio_submit_split_bioset(),

What is this other badblock path which you are referring to?

which implicitly completes the bio with EINVAL.

Fix this by handling atomic writes in the common split check. If RAID10
determines that an atomic write would require splitting, complete the
bio with EIO.

Fixes: a1d9b4fd42d9 ("md/raid10: Atomic write support")
Signed-off-by: Abd-Alrhman Masalkhi<abd.masalkhi@xxxxxxxxx>
---