Whamcloud - gitweb
LU-11675 hsm: don't allow new HSM requests during CDT_INIT
[fs/lustre-release.git] / lustre / mdt / mdt_hsm_cdt_client.c
index b0c01c9..705e98e 100644 (file)
@@ -420,7 +420,7 @@ int mdt_hsm_add_actions(struct mdt_thread_info *mti,
        ENTRY;
 
        /* no coordinator started, so we cannot serve requests */
-       if (cdt->cdt_state == CDT_STOPPED)
+       if (cdt->cdt_state == CDT_STOPPED || cdt->cdt_state == CDT_INIT)
                RETURN(-EAGAIN);
 
        if (!hal_is_sane(hal))