Skip to content

dm raid: fix raid set extensions not being synchronized

Heinz Mauelshagen dm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dm raid: change rs_set_dev_and_array_sectors API and callersdrivers/md/dm-raid.c+5 -90 replies
2/4dm raid: to ensure resynchronization, perform raid set grow in preresumeDocumentation/admin-guide/device-mapper/dm-raid.rst drivers/md/dm-raid.c+62 -210 replies
3/4dm raid: simplify rs_setup_recovery call chaindrivers/md/dm-raid.c+6 -210 replies
4/4dm raid: streamline rs_get_progress() and its raid_status() caller sidedrivers/md/dm-raid.c+21 -310 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] dm raid: fix raid set extensions not being synchronized

This patch series fixes flaws causing raid set extensions not to be synchronized in case a grown MD bitmap has to allocate additional pages.

When a raid set's grown, additional pages in the MD write-intent bitmap may have to be allocated as a result. Because so far no md_bitmap_resize() occurs in that process, additional new regions (aka MD bitmap chunks) aren't set dirty during creation, thus they fail to be synchronized. Solve by using md_bitmap_resize() in raid set size extensions to ensure dirtying of additional, new regions.

Also address another flaw causing new regions not to be synchronized after a raid set size reduction followed by an extension and streamline recovery setup and progress status functions.

Passes all lvm2 test suite RAID tests.

Heinz Mauelshagen (4):
dm raid: change rs_set_dev_and_array_sectors API and callers dm raid: to ensure resynchronization, perform raid set grow in preresume dm raid: simplify rs_setup_recovery call chain
dm raid: streamline rs_get_progress() and its raid_status() caller side

 .../admin-guide/device-mapper/dm-raid.rst     |   2 +
 drivers/md/dm-raid.c                          | 168 ++++++++++--------
 2 files changed, 91 insertions(+), 79 deletions(-)
Signature · 1 line
2.21.0