All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/4] md/md-bitmap: support to build md-bitmap as kernel module
@ 2024-10-24 13:13 Yu Kuai
  2024-10-24 13:13 ` [PATCH RFC 1/4] md/md-bitmap: remove the parameter 'init' for bitmap_ops->resize() Yu Kuai
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Yu Kuai @ 2024-10-24 13:13 UTC (permalink / raw)
  To: song; +Cc: linux-raid, linux-kernel, yukuai3, yukuai1, yi.zhang, yangerkun

From: Yu Kuai <yukuai3@huawei.com>

Now that all implementations are internal, it's sensible to build it as
kernel module now.

Currently, if md-bitmap is build as module and the module is not loaded,
creating new array will try to load the module, regardless that bitmap
is used or not. There are still lots of cleanups to prevent
deferencing "mddev->bitmap_ops" for the array without bitmap.

Yu Kuai (4):
  md/md-bitmap: remove the parameter 'init' for bitmap_ops->resize()
  md/md-bitmap: merge md_bitmap_group into bitmap_operations
  md: export some helpers
  md/md-bitmap: support to build md-bitmap as kernel module

 drivers/md/Kconfig      |  15 +++++
 drivers/md/Makefile     |   4 +-
 drivers/md/dm-raid.c    |   2 +-
 drivers/md/md-bitmap.c  |  38 +++++++++++--
 drivers/md/md-bitmap.h  |  13 +++--
 drivers/md/md-cluster.c |   2 +-
 drivers/md/md.c         | 118 +++++++++++++++++++++++++++++++++-------
 drivers/md/md.h         |  12 +++-
 drivers/md/raid1.c      |   2 +-
 drivers/md/raid10.c     |   8 +--
 drivers/md/raid5.c      |   2 +-
 11 files changed, 172 insertions(+), 44 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2024-10-25  7:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-24 13:13 [PATCH RFC 0/4] md/md-bitmap: support to build md-bitmap as kernel module Yu Kuai
2024-10-24 13:13 ` [PATCH RFC 1/4] md/md-bitmap: remove the parameter 'init' for bitmap_ops->resize() Yu Kuai
2024-10-24 13:13 ` [PATCH RFC 2/4] md/md-bitmap: merge md_bitmap_group into bitmap_operations Yu Kuai
2024-10-24 13:13 ` [PATCH RFC 3/4] md: export some helpers Yu Kuai
2024-10-24 13:13 ` [PATCH RFC 4/4] md/md-bitmap: support to build md-bitmap as kernel module Yu Kuai
2024-10-25  7:02   ` Mariusz Tkaczyk
2024-10-25  7:17     ` Yu Kuai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.