summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-07-30 10:32:38 +0300
committerDoug Ledford <dledford@redhat.com>2015-08-30 18:08:45 -0400
commit563b67c5f90abeae1038008e6c9c187fb36ad35c (patch)
treedac065b710af0354d0284d5f7a0bf50ffc9c367c
parenta89be2cc51f6602e803f2f9a9c8c4f59a0bd58b3 (diff)
downloadblackbird-op-linux-563b67c5f90abeae1038008e6c9c187fb36ad35c.tar.gz
blackbird-op-linux-563b67c5f90abeae1038008e6c9c187fb36ad35c.zip
IB/srp: Convert to ib_alloc_mr
Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index 7755df444cfd..43265608361e 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -378,7 +378,8 @@ static struct srp_fr_pool *srp_create_fr_pool(struct ib_device *device,
INIT_LIST_HEAD(&pool->free_list);
for (i = 0, d = &pool->desc[0]; i < pool->size; i++, d++) {
- mr = ib_alloc_fast_reg_mr(pd, max_page_list_len);
+ mr = ib_alloc_mr(pd, IB_MR_TYPE_MEM_REG,
+ max_page_list_len);
if (IS_ERR(mr)) {
ret = PTR_ERR(mr);
goto destroy_pool;
OpenPOWER on IntegriCloud