Whamcloud - gitweb
Branch: b1_4
authoradilger <adilger>
Tue, 12 Apr 2005 09:10:50 +0000 (09:10 +0000)
committeradilger <adilger>
Tue, 12 Apr 2005 09:10:50 +0000 (09:10 +0000)
Fix copy+paste bug from "upcall removal" landing.  b=3262 r=nathan, green
Add debugging for missing reconnect RPC. b=5933

lustre/ptlrpc/import.c

index 0e47550..3a79e8a 100644 (file)
@@ -300,7 +300,7 @@ static int import_select_connection(struct obd_import *imp)
         dlmexp =  class_conn2export(&imp->imp_dlm_handle);
         LASSERT(dlmexp != NULL);
         if (dlmexp->exp_connection)
-                ptlrpc_put_connection(imp->imp_connection);
+                ptlrpc_put_connection(dlmexp->exp_connection);
         dlmexp->exp_connection = ptlrpc_connection_addref(imp_conn->oic_conn);
         class_export_put(dlmexp);
 
@@ -395,6 +395,7 @@ int ptlrpc_connect_import(struct obd_import *imp, char * new_uuid)
         if (aa->pcaa_initial_connect)
                 imp->imp_replayable = 1;
 
+        DEBUG_REQ(D_RPCTRACE, request, "(re)connect request");
         ptlrpcd_add_req(request);
         rc = 0;
 out: