mbox series

[6.6,v2,0/6] md/md-bitmap: move bitmap_{start, end}write to md upper layer

Message ID 20250210073322.3315094-1-yukuai1@huaweicloud.com (mailing list archive)
Headers show
Series md/md-bitmap: move bitmap_{start, end}write to md upper layer | expand

Message

Yu Kuai Feb. 10, 2025, 7:33 a.m. UTC
From: Yu Kuai <yukuai3@huawei.com>

Changes in v2:
 - Add descriptions about chagnes from the original commits, in order to
 fix conflicts.

This set is actually a refactor, we're bacporting this set because
following problems can be fixed:

https://lore.kernel.org/all/CAJpMwyjmHQLvm6zg1cmQErttNNQPDAAXPKM3xgTjMhbfts986Q@mail.gmail.com/
https://lore.kernel.org/all/ADF7D720-5764-4AF3-B68E-1845988737AA@flyingcircus.io/

See details in patch 6.

I'll suggest people to upgrade their kernel to v6.6+, please let me know
if anyone really want this set for lower version.

Benjamin Marzinski (1):
  md/raid5: recheck if reshape has finished with device_lock held

Yu Kuai (5):
  md/md-bitmap: factor behind write counters out from
    bitmap_{start/end}write()
  md/md-bitmap: remove the last parameter for bimtap_ops->endwrite()
  md: add a new callback pers->bitmap_sector()
  md/raid5: implement pers->bitmap_sector()
  md/md-bitmap: move bitmap_{start, end}write to md upper layer

 drivers/md/md-bitmap.c   |  75 ++++++++++-------
 drivers/md/md-bitmap.h   |   6 +-
 drivers/md/md.c          |  26 ++++++
 drivers/md/md.h          |   5 ++
 drivers/md/raid1.c       |  35 ++------
 drivers/md/raid1.h       |   1 -
 drivers/md/raid10.c      |  26 +-----
 drivers/md/raid10.h      |   1 -
 drivers/md/raid5-cache.c |   4 -
 drivers/md/raid5.c       | 174 ++++++++++++++++++++++-----------------
 drivers/md/raid5.h       |   4 -
 11 files changed, 185 insertions(+), 172 deletions(-)