-#ifdef LPROCFS
-void lprocfs_mgc_init_vars(struct lprocfs_static_vars *lvars);
-int lprocfs_mgc_rd_ir_state(char *page, char **start, off_t off,
- int count, int *eof, void *data);
-#else
-static void lprocfs_mgc_init_vars(struct lprocfs_static_vars *lvars)
+int mgc_tunables_init(struct obd_device *obd);
+int lprocfs_mgc_rd_ir_state(struct seq_file *m, void *data);
+
+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)