Linux RAID subsystem development
 help / color / mirror / Atom feed
* [PATCH 00/15] folio support for sync I/O in RAID
@ 2025-12-17 11:59 linan666
  2025-12-17 11:59 ` [PATCH 01/15] md/raid1,raid10: clean up of RESYNC_SECTORS linan666
                   ` (14 more replies)
  0 siblings, 15 replies; 26+ messages in thread
From: linan666 @ 2025-12-17 11:59 UTC (permalink / raw)
  To: song, yukuai; +Cc: linux-raid, linux-kernel, xni, linan666, yangerkun, yi.zhang

From: Li Nan <linan122@huawei.com>

This patchset adds folio support to sync operations in raid1/10.
Previously, we used 16 * 4K pages for 64K sync I/O. With this change,
we'll use a single 64K folio instead.

This is the first step towards full folio support in RAID. Going forward,
I will replace the remaining page-based usage with folio.

The patchset was tested with mdadm. Additional fault injection stress tests
were run under file systems.

Li Nan (15):
  md/raid1,raid10: clean up of RESYNC_SECTORS
  md: introduce sync_folio_io for folio support in RAID
  md: use folio for bb_folio
  md/raid1: use folio for tmppage
  md/raid10: use folio for tmppage
  md/raid1,raid10: use folio for sync path IO
  md: Clean up folio sync support related code
  md/raid1: clean up useless sync_blocks handling in raid1_sync_request
  md/raid1: fix IO error at logical block size granularity
  md/raid10: fix IO error at logical block size granularity
  md/raid1,raid10: clean up resync_fetch_folio
  md: clean up resync_free_folio
  md/raid1: clean up sync IO size calculation in raid1_sync_request
  md/raid10: clean up sync IO size calculation in raid10_sync_request
  md/raid1,raid10: fall back to smaller order if sync folio alloc fails

 drivers/md/md.h       |   5 +-
 drivers/md/raid1.h    |   2 +-
 drivers/md/raid10.h   |   2 +-
 drivers/md/md.c       |  54 ++++++--
 drivers/md/raid1-10.c |  81 ++++-------
 drivers/md/raid1.c    | 219 +++++++++++++-----------------
 drivers/md/raid10.c   | 303 ++++++++++++++++++++----------------------
 7 files changed, 310 insertions(+), 356 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2026-01-22  7:01 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-17 11:59 [PATCH 00/15] folio support for sync I/O in RAID linan666
2025-12-17 11:59 ` [PATCH 01/15] md/raid1,raid10: clean up of RESYNC_SECTORS linan666
2025-12-17 12:00 ` [PATCH 02/15] md: introduce sync_folio_io for folio support in RAID linan666
2025-12-17 12:00 ` [PATCH 03/15] md: use folio for bb_folio linan666
2026-01-19  3:03   ` Xiao Ni
2026-01-20 11:49     ` Li Nan
2025-12-17 12:00 ` [PATCH 04/15] md/raid1: use folio for tmppage linan666
2026-01-19  3:20   ` Xiao Ni
2026-01-20  3:38     ` Xiao Ni
2026-01-20 11:51       ` Li Nan
2025-12-17 12:00 ` [PATCH 05/15] md/raid10: " linan666
2025-12-17 12:00 ` [PATCH 06/15] md/raid1,raid10: use folio for sync path IO linan666
2025-12-27  1:34   ` Li Nan
2026-01-20 15:53   ` Xiao Ni
2026-01-22  2:12     ` Li Nan
2026-01-22  7:01       ` Xiao Ni
2025-12-17 12:00 ` [PATCH 07/15] md: Clean up folio sync support related code linan666
2026-01-20 16:01   ` Xiao Ni
2025-12-17 12:00 ` [PATCH 08/15] md/raid1: clean up useless sync_blocks handling in raid1_sync_request linan666
2025-12-17 12:00 ` [PATCH 09/15] md/raid1: fix IO error at logical block size granularity linan666
2025-12-17 12:00 ` [PATCH 10/15] md/raid10: " linan666
2025-12-17 12:00 ` [PATCH 11/15] md/raid1,raid10: clean up resync_fetch_folio linan666
2025-12-17 12:00 ` [PATCH 12/15] md: clean up resync_free_folio linan666
2025-12-17 12:00 ` [PATCH 13/15] md/raid1: clean up sync IO size calculation in raid1_sync_request linan666
2025-12-17 12:00 ` [PATCH 14/15] md/raid10: clean up sync IO size calculation in raid10_sync_request linan666
2025-12-17 12:00 ` [PATCH 15/15] md/raid1,raid10: fall back to smaller order if sync folio alloc fails linan666

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox