mbox series

[v2,md-6.14,00/12] md/md-bitmap: introducet CONFIG_MD_BITMAP

Message ID 20250109015704.216128-1-yukuai1@huaweicloud.com (mailing list archive)
Headers show
Series md/md-bitmap: introducet CONFIG_MD_BITMAP | expand

Message

Yu Kuai Jan. 9, 2025, 1:56 a.m. UTC
From: Yu Kuai <yukuai3@huawei.com>

Changes in v2:
 - don't export apis, and don't support build md-bitmap as module

Yu Kuai (12):
  md/md-bitmap: remove the parameter 'init' for bitmap_ops->resize()
  md/md-bitmap: merge md_bitmap_group into bitmap_operations
  md/md-bitmap: add md_bitmap_registered/enabled() helper
  md/md-bitmap: handle the case bitmap is not enabled before
    start_sync()
  md/md-bitmap: handle the case bitmap is not enabled before end_sync()
  md/dm-raid: check if bitmap is registered in raid_ctr()
  md/raid1: check bitmap before behind write
  md/raid1: check before deferencing mddev->bitmap_ops
  md/raid10: check before deferencing mddev->bitmap_ops
  md/raid5: check before deferencing mddev->bitmap_ops
  md: check before deferencing mddev->bitmap_ops
  md/md-bitmap: introducet CONFIG_MD_BITMAP

 drivers/md/Kconfig      |  18 +++++
 drivers/md/dm-raid.c    |   5 +-
 drivers/md/md-bitmap.c  |  65 ++++++++---------
 drivers/md/md-bitmap.h  |  66 +++++++++++++++--
 drivers/md/md-cluster.c |   2 +-
 drivers/md/md.c         | 154 +++++++++++++++++++++++++++++++---------
 drivers/md/md.h         |   2 -
 drivers/md/raid1-10.c   |   2 +-
 drivers/md/raid1.c      |  79 ++++++++++++---------
 drivers/md/raid10.c     |  48 ++++++-------
 drivers/md/raid5.c      |  30 ++++----
 11 files changed, 325 insertions(+), 146 deletions(-)

Comments

Song Liu Jan. 9, 2025, 5:51 p.m. UTC | #1
On Wed, Jan 8, 2025 at 6:02 PM Yu Kuai <yukuai1@huaweicloud.com> wrote:
>
> From: Yu Kuai <yukuai3@huawei.com>
>
> Changes in v2:
>  - don't export apis, and don't support build md-bitmap as module

Since we do not support building md-bitmap as a module, we should
update the commit logs to reflect this change. Also, please explain
why we need an option to disable md-bitmap.

Thanks,
Song

pw-bot: cr

[...]