linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] make logical_block_size configurable
@ 2025-08-25  7:59 linan666
  2025-08-25  7:59 ` [PATCH v3 1/2] md: prevent adding disks with larger logical_block_size to active arrays linan666
  2025-08-25  7:59 ` [PATCH v3 2/2] md: allow configuring logical_block_size linan666
  0 siblings, 2 replies; 8+ messages in thread
From: linan666 @ 2025-08-25  7:59 UTC (permalink / raw)
  To: song, yukuai3
  Cc: linux-raid, linux-kernel, martin.petersen, bvanassche, hch,
	filipe.c.maia, linan666, yangerkun, yi.zhang

From: Li Nan <linan122@huawei.com>

v3:
 - logical_block_size must not exceed PAGE_SIZE for bio device.
 - Assign lim to mddev rather than to gendisk in mddev_stack_rdev_limits().
 - Remove the patch that modifies the return value.

v2: No new exported interfaces are introduced.

Li Nan (2):
  md: prevent adding disks with larger logical_block_size to active
    arrays
  md: allow configuring logical_block_size

 drivers/md/md.h                |  1 +
 include/uapi/linux/raid/md_p.h |  6 ++-
 drivers/md/md-linear.c         |  1 +
 drivers/md/md.c                | 82 ++++++++++++++++++++++++++++++++++
 drivers/md/raid0.c             |  1 +
 drivers/md/raid1.c             |  1 +
 drivers/md/raid10.c            |  1 +
 drivers/md/raid5.c             |  1 +
 8 files changed, 92 insertions(+), 2 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2025-08-27  9:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25  7:59 [PATCH v3 0/2] make logical_block_size configurable linan666
2025-08-25  7:59 ` [PATCH v3 1/2] md: prevent adding disks with larger logical_block_size to active arrays linan666
2025-08-25  8:10   ` Paul Menzel
2025-08-25  8:43     ` Li Nan
2025-08-27  9:29   ` Yu Kuai
2025-08-25  7:59 ` [PATCH v3 2/2] md: allow configuring logical_block_size linan666
2025-08-25 19:51   ` Martin K. Petersen
2025-08-27  9:39   ` Yu Kuai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).