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 */
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);
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);
}