summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid.c
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2016-06-24 01:06:28 +0200
committerMike Snitzer <snitzer@redhat.com>2016-07-18 15:37:26 -0400
commitf6895fd5058910d010026e1b78c4e596754994be (patch)
tree80f0766925456db9556aa5b7a05200998170c7fe /drivers/md/dm-raid.c
parent2527b56e0d2f6c4f4a2a20a0ae773d96ba69d3fe (diff)
downloadop-kernel-dev-f6895fd5058910d010026e1b78c4e596754994be.zip
op-kernel-dev-f6895fd5058910d010026e1b78c4e596754994be.tar.gz
dm raid: fix new superblock/bitmap creation on disk addition
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-raid.c')
-rw-r--r--drivers/md/dm-raid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index 4572202..5e41bf3 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -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);
OpenPOWER on IntegriCloud