iser-target: move rdma wr processing to a shared function
authorVu Pham <vu@mellanox.com>
Wed, 28 Aug 2013 20:23:33 +0000 (23:23 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 10 Sep 2013 23:48:49 +0000 (16:48 -0700)
commit90ecc6e251c06971a13f5b7bae0d7e29dffd0c6c
tree3edac6c51856d236dbd58b679924f97e1cfbe0b2
parentf99715ac8d6fb553ccd0598a264e88981b4c60c1
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>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/infiniband/ulp/isert/ib_isert.h