(Online Capacity Expansion for IMSM) When performing takeover raid0->raid5, Raid5 monitoring has to be started. This is required to perform metadata updates when disks will be added. update_super("update_level") return code determines flushing update only. Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- Grow.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Grow.c b/Grow.c index 4431b64..85d7fe0 100644 --- a/Grow.c +++ b/Grow.c @@ -875,11 +875,6 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file, st->update_tail = &st->updates; err = st->ss->update_super(st, sra, "update_level", ext_sra.name, 0, 0, NULL); - if (err != 0) { - /* no need to perform any updates with mdmon */ - rv = 0; - goto release; - } /* if raid0 was takeovered by any other * personality start mdmon */ if (level > 0 && orig.level == 0) { @@ -887,7 +882,12 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file, start_mdmon(dn); ping_monitor(devnum2devname(dn)); } - flush_metadata_updates(st); + if (err == 0) { + /* perform any updates with mdmon + * if required + */ + flush_metadata_updates(st); + } } } } -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html