Whamcloud - gitweb
b=5150
[fs/lustre-release.git] / lustre / ptlbd / rpc.c
index 5af3249..d4e4747 100644 (file)
@@ -54,7 +54,7 @@ int ptlbd_send_rw_req(struct ptlbd_obd *ptlbd, ptlbd_cmd_t cmd,
         size[0] = sizeof(struct ptlbd_op);
         size[1] = page_count * sizeof(struct ptlbd_niob);
 
-        req = ptlrpc_prep_req(imp, cmd, 2, size, NULL);
+        req = ptlrpc_prep_req(imp, LUSTRE_PBD_VERSION, cmd, 2, size, NULL);
         if (!req)
                 RETURN(rc = 1);                  /* need to return error cnt */
 
@@ -127,7 +127,7 @@ int ptlbd_send_flush_req(struct ptlbd_obd *ptlbd, ptlbd_cmd_t cmd)
 
         size[0] = sizeof(struct ptlbd_op);
 
-        req = ptlrpc_prep_req(imp, cmd, 1, size, NULL);
+        req = ptlrpc_prep_req(imp, LUSTRE_PBD_VERSION, cmd, 1, size, NULL);
         if (!req)
                 RETURN(-ENOMEM); 
 
@@ -354,7 +354,7 @@ int ptlbd_handle(struct ptlrpc_request *req)
         swab = lustre_msg_swabbed (req->rq_reqmsg);
 
         if (req->rq_reqmsg->opc == PTLBD_CONNECT) {
-                rc = target_handle_connect(req, ptlbd_handle);
+                rc = target_handle_connect(req);
                 target_send_reply(req, rc, OBD_FAIL_PTLRPC);
                 RETURN(0);
         }