aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/isert/ib_isert.h
diff options
context:
space:
mode:
authorVu Pham <vu@mellanox.com>2013-08-28 23:23:33 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2013-09-10 16:48:49 -0700
commit90ecc6e251c06971a13f5b7bae0d7e29dffd0c6c (patch)
tree3edac6c51856d236dbd58b679924f97e1cfbe0b2 /drivers/infiniband/ulp/isert/ib_isert.h
parenttarget: Enable global EXTENDED_COPY setup/release (diff)
downloadlinux-dev-90ecc6e251c06971a13f5b7bae0d7e29dffd0c6c.tar.xz
linux-dev-90ecc6e251c06971a13f5b7bae0d7e29dffd0c6c.zip
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: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Vu Pham <vu@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband/ulp/isert/ib_isert.h')
-rw-r--r--drivers/infiniband/ulp/isert/ib_isert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.h b/drivers/infiniband/ulp/isert/ib_isert.h
index 0d45945201cb..21ffd4eff004 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.h
+++ b/drivers/infiniband/ulp/isert/ib_isert.h
@@ -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;