int mgc_process_log(struct obd_device *mgc, struct config_llog_data *cld);
+/* this timeout represents how many seconds MGC should wait before
+ * requeue config and recover lock to the MGS. We need to randomize this
+ * in order to not flood the MGS.
+ */
+#define MGC_TIMEOUT_MIN_SECONDS 5
+
+extern unsigned int mgc_requeue_timeout_min;
+
static inline bool cld_is_sptlrpc(struct config_llog_data *cld)
{
return cld->cld_type == MGS_CFG_T_SPTLRPC;
static inline bool cld_is_nodemap(struct config_llog_data *cld)
{
+#ifdef HAVE_SERVER_SUPPORT
return cld->cld_type == MGS_CFG_T_NODEMAP;
+#else
+ return false;
+#endif
}
static inline bool cld_is_barrier(struct config_llog_data *cld)
{
+#ifdef HAVE_SERVER_SUPPORT
return cld->cld_type == MGS_CFG_T_BARRIER;
+#else
+ return false;
+#endif
}
#endif /* _MGC_INTERNAL_H */