if (ib_dereg_mr(r->r.frmr.fr_mr))
                goto out_fail;
 
-       r->r.frmr.fr_mr = ib_alloc_fast_reg_mr(pd, depth);
+       r->r.frmr.fr_mr = ib_alloc_mr(pd, IB_MR_TYPE_MEM_REG, depth);
        if (IS_ERR(r->r.frmr.fr_mr))
                goto out_fail;
 
        struct rpcrdma_frmr *f = &r->r.frmr;
        int rc;
 
-       f->fr_mr = ib_alloc_fast_reg_mr(pd, depth);
+       f->fr_mr = ib_alloc_mr(pd, IB_MR_TYPE_MEM_REG, depth);
        if (IS_ERR(f->fr_mr))
                goto out_mr_err;
        f->fr_pgl = ib_alloc_fast_reg_page_list(device, depth);
 
 out_mr_err:
        rc = PTR_ERR(f->fr_mr);
-       dprintk("RPC:       %s: ib_alloc_fast_reg_mr status %i\n",
+       dprintk("RPC:       %s: ib_alloc_mr status %i\n",
                __func__, rc);
        return rc;