dm raid: to ensure resynchronization, perform raid set grow in preresume
authorHeinz Mauelshagen <heinzm@redhat.com>
Tue, 1 Oct 2019 15:47:53 +0000 (17:47 +0200)
committerMike Snitzer <snitzer@redhat.com>
Tue, 5 Nov 2019 19:02:26 +0000 (14:02 -0500)
commit99273d9e6e19ce7bc393d294d60b8e0c0b971121
treeb29f307d8b408680ed5465bb94cc933013b88a6d
parent22c992e1a868478b9fe83701cdf6329103c2ac06
dm raid: to ensure resynchronization, perform raid set grow in preresume

This fixes a flaw causing raid set extensions not to be synchronized
in case the MD bitmap resize required additional pages to be allocated.

Also share resize code in the raid constructor between
new size changes and those occuring during recovery.

Bump the target version to define the change and document
it in Documentation/admin-guide/device-mapper/dm-raid.rst.

Reported-by: Steve D <steved424@gmail.com>
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/admin-guide/device-mapper/dm-raid.rst
drivers/md/dm-raid.c