struct ldlm_namespace *ns;
struct ldlm_namespace *ns_old = NULL;
int nr, equal = 0;
- int time = 50; /* seconds of sleep if no active namespaces */
+ /* seconds of sleep if no active namespaces */
+ int time = client ? LDLM_POOL_CLI_DEF_RECALC_PERIOD :
+ LDLM_POOL_SRV_DEF_RECALC_PERIOD;
/*
* No need to setup pool limit for client pools.
ldlm_namespace_put(ns);
}
}
+
+ /* Wake up the blocking threads from time to time. */
+ ldlm_bl_thread_wakeup();
+
return time;
}