Commit 9d9d939c authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Mike Snitzer
Browse files

dm raid: make rs_set_capacity to work on shrinking reshape

Signed-off-by: default avatarHeinz Mauelshagen <>
Signed-off-by: default avatarMike Snitzer <>
parent 6ee0bae9
......@@ -617,9 +617,7 @@ static void rs_set_capacity(struct raid_set *rs)
struct mddev *mddev = &rs->md;
/* Make sure we access most actual mddev properties */
if (rs->ti->len != mddev->array_sectors && !rs_is_reshaping(rs)) {
if (rs->ti->len != mddev->array_sectors) {
struct gendisk *gendisk = dm_disk(dm_table_get_md(rs->ti->table));
set_capacity(gendisk, mddev->array_sectors);
......@@ -1471,7 +1469,9 @@ static void do_table_event(struct work_struct *ws)
struct raid_set *rs = container_of(ws, struct raid_set, md.event_work);
smp_rmb(); /* Make sure we access most actual mddev properties */
if (!rs_is_reshaping(rs))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment