Whamcloud - gitweb
LU-1014 mountconf: MGS update timeout upon config update
[fs/lustre-release.git] / lustre / mgs / mgs_llog.c
index a710617..00518d2 100644 (file)
@@ -2045,6 +2045,20 @@ static int mgs_write_log_sys(struct obd_device *obd, struct fs_db *fsdb,
        rc = mgs_write_log_direct_all(obd, fsdb, mti,
                                *tmp == '\0' ? NULL : lcfg,
                                mti->mti_fsname, sys);
+       if (rc == 0 && *tmp != '\0') {
+               switch (cmd) {
+               case LCFG_SET_TIMEOUT:
+                       if (!obd_timeout_set || lcfg->lcfg_num > obd_timeout)
+                               class_process_config(lcfg);
+                       break;
+               case LCFG_SET_LDLM_TIMEOUT:
+                       if (!ldlm_timeout_set || lcfg->lcfg_num > ldlm_timeout)
+                               class_process_config(lcfg);
+                       break;
+               default:
+                       break;
+               }
+       }
        *ptr = sep;
        lustre_cfg_free(lcfg);
        return rc;