dm raid: fix failed takeover/reshapes by keeping raid set frozen
authorHeinz Mauelshagen <heinzm@redhat.com>
Tue, 14 Jun 2016 19:23:13 +0000 (15:23 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 14 Jun 2016 22:52:14 +0000 (18:52 -0400)
commit6e20902e8f9e1551afa75bd499be853a95745b9f
tree7aab7c01aae2cf81f3da0fb987673a0b8d4d8bf0
parent4257e085e26edaba0bf516ea231bd5122e3f3e6f
dm raid: fix failed takeover/reshapes by keeping raid set frozen

Superblock updates where bogus causing some takovers/reshapes to fail.

Introduce new runtime flag (RT_FLAG_KEEP_RS_FROZEN) to keep a raid set
frozen when a layout change was requested.  Userpace will immediately
reload the table w/o the flags requesting such change once they made it
to the superblocks and any change of recovery/reshape offsets has to be
avoided until after read.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c