Whamcloud - gitweb
b=12237, i=isaac:
authorisaac <isaac>
Mon, 16 Apr 2007 15:55:47 +0000 (15:55 +0000)
committerisaac <isaac>
Mon, 16 Apr 2007 15:55:47 +0000 (15:55 +0000)
-   landing 12237 fix from atchley@myri.com.

lnet/ChangeLog
lnet/klnds/mxlnd/mxlnd.c
lnet/klnds/mxlnd/mxlnd_cb.c
lnet/utils/portals.c

index 7fb80a9..f304e97 100644 (file)
        ptllnd    - Portals 3.3 / UNICOS/lc 1.5.x, 2.0.x
        * bug fixes
 
+Severity   : minor
+Frequency  : 'lctl peer_list' issued on a mx net
+Bugzilla   : 12237
+Description: Enable lctl's peer_list for MXLND
+
 Severity   : major
 Frequency  : after Ptllnd timeouts and portals congestion
 Bugzilla   : 11659
index bb6991d..d4287ba 100644 (file)
@@ -579,7 +579,7 @@ mxlnd_init_mx(lnet_ni_t *ni)
                 mx_finalize();
                 return -1;
         }
-        mxret = mx_set_request_timeout(kmxlnd_data.kmx_endpt, NULL, MXLND_COMM_TIMEOUT/HZ);
+        mxret = mx_set_request_timeout(kmxlnd_data.kmx_endpt, NULL, MXLND_COMM_TIMEOUT/HZ*1000);
         if (mxret != MX_SUCCESS) {
                 CERROR("mx_set_request_timeout() failed with %s\n", 
                         mx_strerror(mxret));
index 09d0c0b..31e0a48 100644 (file)
@@ -1087,6 +1087,7 @@ int
 mxlnd_get_peer_info(int index, lnet_nid_t *nidp, int *count)
 {
         int                      i      = 0;
+        int                      ret    = -ENOENT;
         struct kmx_peer         *peer   = NULL;
         struct kmx_conn         *conn   = NULL;
 
@@ -1099,11 +1100,13 @@ mxlnd_get_peer_info(int index, lnet_nid_t *nidp, int *count)
 
                         *nidp = peer->mxp_nid;
                         *count = atomic_read(&peer->mxp_refcount);
+                        ret = 0;
+                        break;
                 }
         }
         read_unlock(&kmxlnd_data.kmx_peers_lock);
         
-        return -ENOENT;
+        return ret;
 }
 
 void
index 10b2014..cefb095 100644 (file)
@@ -570,7 +570,7 @@ jt_ptl_print_peers (int argc, char **argv)
         int                      index;
         int                      rc;
 
-        if (!g_net_is_compatible (argv[0], SOCKLND, RALND, PTLLND,
+        if (!g_net_is_compatible (argv[0], SOCKLND, RALND, PTLLND, MXLND,
                                   OPENIBLND, CIBLND, IIBLND, VIBLND, O2IBLND, 0))
                 return -1;