diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-07-30 10:32:40 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-08-30 18:08:46 -0400 |
commit | fc27995942960c894bc4725435dce8750e44cd64 (patch) | |
tree | 907ad9dc6c29052efe5a8ccea500642323819b42 /net/rds/iw_rdma.c | |
parent | 9ac07501e1918b8d1140adcc360e8d8c7f5a2f7c (diff) | |
download | linux-fc27995942960c894bc4725435dce8750e44cd64.tar.gz linux-fc27995942960c894bc4725435dce8750e44cd64.tar.bz2 linux-fc27995942960c894bc4725435dce8750e44cd64.zip |
RDS: Convert to ib_alloc_mr
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'net/rds/iw_rdma.c')
-rw-r--r-- | net/rds/iw_rdma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/rds/iw_rdma.c b/net/rds/iw_rdma.c index dba8d0864f18..6a8fbd6e69e7 100644 --- a/net/rds/iw_rdma.c +++ b/net/rds/iw_rdma.c @@ -667,11 +667,12 @@ static int rds_iw_init_fastreg(struct rds_iw_mr_pool *pool, struct ib_mr *mr; int err; - mr = ib_alloc_fast_reg_mr(rds_iwdev->pd, pool->max_message_size); + mr = ib_alloc_mr(rds_iwdev->pd, IB_MR_TYPE_MEM_REG, + pool->max_message_size); if (IS_ERR(mr)) { err = PTR_ERR(mr); - printk(KERN_WARNING "RDS/IW: ib_alloc_fast_reg_mr failed (err=%d)\n", err); + printk(KERN_WARNING "RDS/IW: ib_alloc_mr failed (err=%d)\n", err); return err; } |