int tgt_send_buffer(struct tgt_session_info *tsi, struct lu_rdbuf *rdbuf)
{
- struct tgt_thread_info *tti = tgt_th_info(tsi->tsi_env);
struct ptlrpc_request *req = tgt_ses_req(tsi);
struct obd_export *exp = req->rq_export;
struct ptlrpc_bulk_desc *desc;
- struct l_wait_info *lwi = &tti->tti_u.update.tti_wait_info;
int i;
int rc;
rdbuf->rb_bufs[i].lb_buf,
rdbuf->rb_bufs[i].lb_len);
- rc = target_bulk_io(exp, desc, lwi);
+ rc = target_bulk_io(exp, desc);
ptlrpc_free_bulk(desc);
RETURN(rc);
}
int tgt_sendpage(struct tgt_session_info *tsi, struct lu_rdpg *rdpg, int nob)
{
- struct tgt_thread_info *tti = tgt_th_info(tsi->tsi_env);
struct ptlrpc_request *req = tgt_ses_req(tsi);
struct obd_export *exp = req->rq_export;
struct ptlrpc_bulk_desc *desc;
- struct l_wait_info *lwi = &tti->tti_u.rdpg.tti_wait_info;
int tmpcount;
int tmpsize;
int i;
}
LASSERT(desc->bd_nob == nob);
- rc = target_bulk_io(exp, desc, lwi);
+ rc = target_bulk_io(exp, desc);
ptlrpc_free_bulk(desc);
RETURN(rc);
}
RCL_SERVER);
rc = rc > 0 ? 0 : rc;
} else if (!CFS_FAIL_PRECHECK(OBD_FAIL_PTLRPC_CLIENT_BULK_CB2)) {
- rc = target_bulk_io(exp, desc, &lwi);
+ rc = target_bulk_io(exp, desc);
}
no_reply = rc != 0;
} else {
lwi1 = LWI_TIMEOUT_INTR(cfs_time_seconds(3), NULL, NULL, NULL);
l_wait_event(waitq, 0, &lwi1);
- target_bulk_io(exp, desc, &lwi);
+ target_bulk_io(exp, desc);
ptlrpc_free_bulk(desc);
}
struct niobuf_local *local_nb;
struct obd_ioobj *ioo;
struct ost_body *body, *repbody;
- struct l_wait_info lwi;
struct lustre_handle lockh = {0};
__u32 *rcs;
int objcount, niocount, npages;
if (rc != 0)
GOTO(skip_transfer, rc);
- rc = target_bulk_io(exp, desc, &lwi);
+ rc = target_bulk_io(exp, desc);
}
no_reply = rc != 0;