summaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp/iser/iscsi_iser.h
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-12-09 15:12:00 +0300
committerDoug Ledford <dledford@redhat.com>2015-12-24 08:17:34 +0300
commitbfe066e256d55562b00c2d4897ae52e1545a084e (patch)
tree459e059715d560537dac839246e22386c397a1a0 /drivers/infiniband/ulp/iser/iscsi_iser.h
parent08ff089b12182ee5c2233935df2e416db60083a6 (diff)
downloadlinux-bfe066e256d55562b00c2d4897ae52e1545a084e.tar.xz
IB/iser: Reuse ib_sg_to_pages
We have in iser iser_sg_to_page_vec which has exactly the same role as ib_sg_to_pages. Customize the page_vec to hold a fake MR so we can reuse ib_sg_to_pages. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/iser/iscsi_iser.h')
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.h b/drivers/infiniband/ulp/iser/iscsi_iser.h
index aeaa75867945..7b0fb9d9b36c 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.h
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.h
@@ -585,9 +585,8 @@ struct iscsi_iser_task {
struct iser_page_vec {
u64 *pages;
- int length;
- int offset;
- int data_size;
+ int npages;
+ struct ib_mr fake_mr;
};
/**