nvmf: pass nvmf_request to nvmf_io_cmd_continue()
Change-Id: Ib73510376c3af558b88d5c29a131df931a1a9eda Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
0b672d8e63
commit
855e11e990
@ -399,22 +399,10 @@ spdk_nvmf_send_response(struct spdk_nvmf_conn *conn, struct nvmf_request *req)
|
||||
}
|
||||
|
||||
static int
|
||||
nvmf_io_cmd_continue(struct spdk_nvmf_conn *conn, struct nvme_qp_tx_desc *tx_desc)
|
||||
nvmf_io_cmd_continue(struct spdk_nvmf_conn *conn, struct nvmf_request *req)
|
||||
{
|
||||
struct nvme_qp_rx_desc *rx_desc;
|
||||
struct nvmf_request *req;
|
||||
int ret;
|
||||
|
||||
|
||||
rx_desc = tx_desc->rx_desc;
|
||||
if (rx_desc == NULL) {
|
||||
SPDK_ERRLOG(" rx_desc does not exist!\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
req = &tx_desc->req_state;
|
||||
req->fabric_rx_ctx = rx_desc;
|
||||
|
||||
/* send to NVMf library for backend NVMe processing */
|
||||
ret = nvmf_process_io_cmd(req);
|
||||
if (ret) {
|
||||
@ -1112,7 +1100,7 @@ static int nvmf_cq_event_handler(struct spdk_nvmf_conn *conn)
|
||||
req = &tx_desc->req_state;
|
||||
if (req->pending == NVMF_PENDING_WRITE) {
|
||||
req->pending = NVMF_PENDING_NONE;
|
||||
rc = nvmf_io_cmd_continue(conn, tx_desc);
|
||||
rc = nvmf_io_cmd_continue(conn, req);
|
||||
if (rc) {
|
||||
SPDK_ERRLOG("error from io cmd continue\n");
|
||||
goto handler_error;
|
||||
|
Loading…
Reference in New Issue
Block a user