Whamcloud - gitweb
Land b1_4_bug4165 onto b1_4_smallfix
authoradilger <adilger>
Mon, 20 Sep 2004 19:23:48 +0000 (19:23 +0000)
committeradilger <adilger>
Mon, 20 Sep 2004 19:23:48 +0000 (19:23 +0000)
Properly handle portals process identifiers in messages for Cray portals.
b=4165

lnet/klnds/gmlnd/gmlnd_api.c
lustre/portals/knals/gmnal/gmnal_api.c

index 3e69145..bd6c83e 100644 (file)
@@ -324,7 +324,7 @@ gmnal_api_startup(nal_t *nal, ptl_pid_t requested_pid,
 /*
        pid = gm_getpid();
 */
-        process_id.pid = 0;
+        process_id.pid = requested_pid;
         process_id.nid = global_nid;
         
        CDEBUG(D_INFO, "portals_pid is [%u]\n", process_id.pid);
@@ -399,7 +399,7 @@ int gmnal_init(void)
         rc = ptl_register_nal(GMNAL, &the_gm_nal);
         if (rc != PTL_OK)
                 CERROR("Can't register GMNAL: %d\n", rc);
-        rc = PtlNIInit(GMNAL, 0, NULL, NULL, &kgmnal_ni);
+        rc = PtlNIInit(GMNAL, LUSTRE_SRV_PTL_PID, NULL, NULL, &kgmnal_ni);
         if (rc != PTL_OK && rc != PTL_IFACE_DUP) {
                 ptl_unregister_nal(GMNAL);
                 return (-ENODEV);
index 3e69145..bd6c83e 100644 (file)
@@ -324,7 +324,7 @@ gmnal_api_startup(nal_t *nal, ptl_pid_t requested_pid,
 /*
        pid = gm_getpid();
 */
-        process_id.pid = 0;
+        process_id.pid = requested_pid;
         process_id.nid = global_nid;
         
        CDEBUG(D_INFO, "portals_pid is [%u]\n", process_id.pid);
@@ -399,7 +399,7 @@ int gmnal_init(void)
         rc = ptl_register_nal(GMNAL, &the_gm_nal);
         if (rc != PTL_OK)
                 CERROR("Can't register GMNAL: %d\n", rc);
-        rc = PtlNIInit(GMNAL, 0, NULL, NULL, &kgmnal_ni);
+        rc = PtlNIInit(GMNAL, LUSTRE_SRV_PTL_PID, NULL, NULL, &kgmnal_ni);
         if (rc != PTL_OK && rc != PTL_IFACE_DUP) {
                 ptl_unregister_nal(GMNAL);
                 return (-ENODEV);