Whamcloud - gitweb
- initialize LDLM client data on obdfilter, not ost, because that's where
authorshaver <shaver>
Wed, 4 Sep 2002 01:19:14 +0000 (01:19 +0000)
committershaver <shaver>
Wed, 4 Sep 2002 01:19:14 +0000 (01:19 +0000)
  the ldlm requests come from.

lustre/obdfilter/filter.c
lustre/ost/ost_handler.c
lustre/ptlrpc/niobuf.c

index 56cc673..53e60eb 100644 (file)
@@ -403,6 +403,9 @@ static int filter_setup(struct obd_device *obddev, obd_count len, void *buf)
         if (obddev->obd_namespace == NULL)
                 LBUG();
 
+        ptlrpc_init_client(LDLM_REQUEST_PORTAL, LDLM_REPLY_PORTAL,
+                           "filter_ldlm_client", &obddev->obd_ldlm_client);
+
         RETURN(0);
 
 err_kfree:
index d956d72..1102e4e 100644 (file)
@@ -615,9 +615,6 @@ static int ost_setup(struct obd_device *obddev, obd_count len, void *buf)
                 }
         }
 
-        ptlrpc_init_client(LDLM_REQUEST_PORTAL, LDLM_REPLY_PORTAL,
-                           "ost_ldlm_client", &obddev->obd_ldlm_client);
-
         RETURN(0);
 
 error_disc:
index 872e8f5..1142380 100644 (file)
@@ -73,6 +73,8 @@ static int ptl_send_buf(struct ptlrpc_request *request,
         CDEBUG(D_NET, "Sending %d bytes to portal %d, xid %Ld\n",
                request->rq_req_md.length, portal, request->rq_xid);
 
+        if (!portal)
+                LBUG();
         rc = PtlPut(md_h, PTL_NOACK_REQ, remote_id, portal, 0, request->rq_xid,
                     0, 0);
         if (rc != PTL_OK) {