Whamcloud - gitweb
LU-7734 lnet: protect peer_ni credits
[fs/lustre-release.git] / lnet / include / lnet / lib-types.h
index 76f5d31..bbf0ab4 100644 (file)
@@ -465,6 +465,8 @@ struct lnet_peer_ni {
        int                     lpni_rtrcredits;
        /* low water mark */
        int                     lpni_minrtrcredits;
+       /* bytes queued for sending */
+       long                    lpni_txqnob;
        /* alive/dead? */
        bool                    lpni_alive;
        /* notification outstanding? */
@@ -477,8 +479,6 @@ struct lnet_peer_ni {
        bool                    lpni_ping_notsent;
        /* # times router went dead<->alive. Protected with lpni_lock */
        int                     lpni_alive_count;
-       /* bytes queued for sending */
-       long                    lpni_txqnob;
        /* time of last aliveness news */
        cfs_time_t              lpni_timestamp;
        /* time of last ping attempt */