Re: [PATCH v4 0/7] md/raid10: fixes, atomic write handling, and error-path cleanup

From: yu kuai

Date: Thu Jul 30 2026 - 20:39:59 EST


Hi,

在 2026/7/10 18:15, Abd-Alrhman Masalkhi 写道:
> Hi,
>
> This v4 of series contains a mix of bug fixes and cleanups for RAID10,
> along with a related atomic write fix for RAID1.
>
> Changes in v4:
> - Improve the commit message of patch 2.
> - Add Reviewed-by tag from John Garry to patch 2.
> - Link to v3: https://lore.kernel.org/linux-raid/20260708101341.473750-1-abd.masalkhi@xxxxxxxxx/
>
> Changes in v3:
> - Set chunk_sectors to BARRIER_UNIT_SECTOR_SIZE instead of setting
> atomic_write_hw_unit_max.
> - Avoid enabling write-behind when the atomic write exceeds the
> write-behind limit.
> - Link to v2: https://lore.kernel.org/linux-raid/20260628142420.1051027-1-abd.masalkhi@xxxxxxxxx/
>
> Changes in v2:
> - Expand the commit message to explain why the
> allow_barrier()/wait_barrier() pair is no longer needed.
> - Drop the early atomic write split check from raid1_write_request().
> - Advertise the atomic write size limit via queue limits.
> - Disable write-behind instead of failing atomic writes when the
> BIO_MAX_VECS limit is encountered.
> - Drop the early atomic write split check from raid10_write_request()
> and rely on queue limits instead.
> - Fix a compilation error (bi -> bio).
> - Link to v1: https://lore.kernel.org/linux-raid/20260623072456.333437-1-abd.masalkhi@xxxxxxxxx/
>
> Thanks,
> Abd-alrhman,
>
> Abd-Alrhman Masalkhi (7):
> md/raid10: fix r10bio leak in raid10_write_request() error paths
> md/raid1: restrict atomic write limits and handle runtime constraints
> md/raid10: consistently fail atomic writes that require splitting
> md/raid10: remove unnecessary barrier around bio_submit_split_bioset()
> md/raid10: replace wait loop with wait_event_idle()
> md/raid10: simplify write request error handling
> md/raid10: simplify read request error handling

Applied patch 2,3,4 to md-7.3

Both patch 1 and patch 5 is not needed after your nowait patch.

>
> drivers/md/raid1.c | 25 ++++------
> drivers/md/raid10.c | 118 +++++++++++++++++++++-----------------------
> 2 files changed, 65 insertions(+), 78 deletions(-)
>
--
Thanks,
Kuai