X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdt%2Fmdt_coordinator.c;h=d0885d07ca66dd232a65d8da664f7055addf38bc;hp=0ff12dec049e08f960035d4c01b2b05272b557c9;hb=34a15de1432814f848f7c794664f0048daa3f9ef;hpb=0c91d49a44e1214b5c65d4a557f6969b3d217881;ds=sidebyside diff --git a/lustre/mdt/mdt_coordinator.c b/lustre/mdt/mdt_coordinator.c index 0ff12de..d0885d0 100644 --- a/lustre/mdt/mdt_coordinator.c +++ b/lustre/mdt/mdt_coordinator.c @@ -2295,9 +2295,10 @@ ssize_t hsm_control_store(struct kobject *kobj, struct attribute *attr, strlen(CDT_DISABLE_CMD)) == 0) { if ((cdt->cdt_state == CDT_STOPPING) || (cdt->cdt_state == CDT_STOPPED)) { - CERROR("%s: Coordinator is stopped\n", - mdt_obd_name(mdt)); - rc = -EINVAL; + /* exit gracefully if coordinator is being stopped + * or stopped already. + */ + rc = 0; } else { rc = set_cdt_state(cdt, CDT_DISABLE); }