dm raid: fix new superblock/bitmap creation on disk addition
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 23 Jun 2016 23:06:28 +0000 (01:06 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 18 Jul 2016 19:37:26 +0000 (15:37 -0400)
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c

index 457220217a93d8b45059c88d2816645653cac7c9..5e41bf34eb872b2abe136ca943010482933c7ce2 100644 (file)
@@ -2850,8 +2850,9 @@ static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv)
                        set_bit(RT_FLAG_KEEP_RS_FROZEN, &rs->runtime_flags);
                }
 
+               /* Create new superblocks and bitmaps, if any */
                if (rs->md.raid_disks < rs->raid_disks)
-                       set_bit(MD_ARRAY_FIRST_USE, &mddev->flags);
+                       set_bit(RT_FLAG_UPDATE_SBS, &rs->runtime_flags);
 
                rs_set_cur(rs);
                rs_setup_recovery(rs, MaxSector);