Re: [PATCH v2 14/14] md/raid1,raid10: fall back to smaller order if sync folio alloc fails
From: Li Nan
Date: Thu Feb 05 2026 - 02:30:11 EST
在 2026/2/5 0:48, Yu Kuai 写道:
Hi,
在 2026/1/28 15:57, linan666@xxxxxxxxxxxxxxx 写道:
From: Li Nan <linan122@xxxxxxxxxx>
RESYNC_BLOCK_SIZE (64K) has higher allocation failure chance than 4k,
so retry with lower orders to improve allocation reliability.
A r1/10_bio may have different rf->folio orders. Use minimum order as
r1/10_bio sectors to prevent exceeding size when adding folio to IO later.
Signed-off-by: Li Nan <linan122@xxxxxxxxxx>
---
drivers/md/raid1-10.c | 14 +++++++++++---
drivers/md/raid1.c | 13 +++++++++----
drivers/md/raid10.c | 28 ++++++++++++++++++++++++++--
3 files changed, 46 insertions(+), 9 deletions(-)
Looks like this patch should be merged into patch 5, there is no need to introduce
that higher allocation failure and then fix it here.
OK, I will merge abouve patches.
--
Thanks,
Nan