Commit 90ecc6e2 authored by Vu Pham's avatar Vu Pham Committed by Nicholas Bellinger

iser-target: move rdma wr processing to a shared function

isert_put_datain() and isert_get_dataout() share a lot of code
in rdma wr processing, move this common code to a shared function.

Use isert_unmap_cmd to cleanup for RDMA_READ completion.
Remove duplicate field in isert_cmd and isert_rdma_wr structs
Change misc debug messages to track isert_cmd
Signed-off-by: default avatarSagi Grimberg <sagig@mellanox.com>
Signed-off-by: default avatarVu Pham <vu@mellanox.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent f99715ac
This diff is collapsed.
......@@ -54,6 +54,7 @@ struct isert_rdma_wr {
struct scatterlist *sge;
int send_wr_num;
struct ib_send_wr *send_wr;
u32 cur_rdma_length;
};
struct isert_cmd {
......@@ -68,7 +69,6 @@ struct isert_cmd {
u32 rdma_wr_num;
struct isert_conn *conn;
struct iscsi_cmd *iscsi_cmd;
struct ib_sge *ib_sge;
struct iser_tx_desc tx_desc;
struct isert_rdma_wr rdma_wr;
struct work_struct comp_work;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment