Whamcloud - gitweb
LU-56 lnet: router-checker (RC) cleanup
[fs/lustre-release.git] / lnet / include / lnet / lib-types.h
index bec4c2b..514e099 100644 (file)
@@ -575,11 +575,9 @@ struct lnet_msg_container {
 };
 
 /* Router Checker states */
-#define LNET_RC_STATE_SHUTDOWN     0            /* not started */
-#define LNET_RC_STATE_RUNNING      1            /* started up OK */
-#define LNET_RC_STATE_STOPTHREAD   2            /* telling thread to stop */
-#define LNET_RC_STATE_UNLINKING    3            /* unlinking RC MD */
-#define LNET_RC_STATE_UNLINKED     4            /* RC's MD has been unlinked */
+#define LNET_RC_STATE_SHUTDOWN         0       /* not started */
+#define LNET_RC_STATE_RUNNING          1       /* started up OK */
+#define LNET_RC_STATE_STOPPING         2       /* telling thread to stop */
 
 typedef struct
 {
@@ -660,10 +658,14 @@ typedef struct
 #ifdef __KERNEL__
         cfs_semaphore_t        ln_rc_signal;        /* serialise startup/shutdown */
 #endif
-        int                    ln_rc_state;         /* router checker startup/shutdown state */
-        lnet_handle_eq_t       ln_rc_eqh;           /* router checker's event queue */
-        lnet_handle_md_t       ln_rc_mdh;
-        cfs_list_t             ln_zombie_rcd;
+       /* router checker startup/shutdown state */
+       int                             ln_rc_state;
+       /* router checker's event queue */
+       lnet_handle_eq_t                ln_rc_eqh;
+       /* rcd still pending on net */
+       cfs_list_t                      ln_rcd_deathrow;
+       /* rcd ready for free */
+       cfs_list_t                      ln_rcd_zombie;
 
         lnet_counters_t        ln_counters;