diff options
author | Artemy Kovalyov <artemyko@mellanox.com> | 2017-04-05 09:23:57 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-04-25 22:40:28 +0300 |
commit | 0008b84ea9afe6ec255c09044e8090cb76babc80 (patch) | |
tree | 15028043fcea6ff1aed3a90e342ef89f6a61cf45 /drivers/infiniband/core/umem.c | |
parent | b2ac91885b9f137fd7ed35593a72bcee9e049ba8 (diff) | |
download | linux-0008b84ea9afe6ec255c09044e8090cb76babc80.tar.xz |
IB/umem: Add support to huge ODP
Add IB_ACCESS_HUGETLB ib_reg_mr flag.
Hugetlb region registered with this flag
will use single translation entry per huge page.
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/umem.c')
-rw-r--r-- | drivers/infiniband/core/umem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/umem.c b/drivers/infiniband/core/umem.c index 6b87c051ffd4..3dbf811d3c51 100644 --- a/drivers/infiniband/core/umem.c +++ b/drivers/infiniband/core/umem.c @@ -133,7 +133,7 @@ struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, if (access & IB_ACCESS_ON_DEMAND) { put_pid(umem->pid); - ret = ib_umem_odp_get(context, umem); + ret = ib_umem_odp_get(context, umem, access); if (ret) { kfree(umem); return ERR_PTR(ret); |