Re: [PATCH v4 0/7] md/raid10: fixes, atomic write handling, and error-path cleanup
"yu kuai" <[email protected]> Fri, 31 Jul 2026 08:35:42 +0800
| Newsgroups | org.kernel.vger.linux-raid,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi, =E5=9C=A8 2026/7/10 18:15, Abd-Alrhman Masalkhi =E5=86=99=E9=81=93: > 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-= [email protected]/ > > 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= [email protected]/ > > 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-= [email protected]/ > > 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(-) > --=20 Thanks, Kuai