IB/iser: Reuse ib_sg_to_pages
authorSagi Grimberg <sagig@mellanox.com>
Wed, 9 Dec 2015 12:12:00 +0000 (14:12 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Dec 2015 05:17:34 +0000 (00:17 -0500)
commitbfe066e256d55562b00c2d4897ae52e1545a084e
tree459e059715d560537dac839246e22386c397a1a0
parent08ff089b12182ee5c2233935df2e416db60083a6
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>
drivers/infiniband/ulp/iser/iscsi_iser.h
drivers/infiniband/ulp/iser/iser_memory.c