diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-16 20:48:07 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-09-21 11:54:46 -0400 |
commit | c9990ab39b6e911003bab10a6da96e98ab1503a3 (patch) | |
tree | 9a58cb3f9c74089b3e022d5dc89d808f8bf9bb2c /include/rdma/ib_umem_odp.h | |
parent | 597ecc5a095406a668e53ab330495ddb65327f77 (diff) | |
download | linux-c9990ab39b6e911003bab10a6da96e98ab1503a3.tar.gz linux-c9990ab39b6e911003bab10a6da96e98ab1503a3.tar.bz2 linux-c9990ab39b6e911003bab10a6da96e98ab1503a3.zip |
RDMA/umem: Move all the ODP related stuff out of ucontext and into per_mm
This is the first step to make ODP use the owning_mm that is now part of
struct ib_umem.
Each ODP umem is linked to a single per_mm structure, which in turn, is
linked to a single mm, via the embedded mmu_notifier. This first patch
introduces the structure and reworks eveything to use it.
This also needs to introduce tgid into the ib_ucontext_per_mm, as
get_user_pages_remote() requires the originating task for statistics
tracking.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/ib_umem_odp.h')
-rw-r--r-- | include/rdma/ib_umem_odp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/ib_umem_odp.h b/include/rdma/ib_umem_odp.h index 4519ea663df5..394ea6b68db7 100644 --- a/include/rdma/ib_umem_odp.h +++ b/include/rdma/ib_umem_odp.h @@ -44,6 +44,8 @@ struct umem_odp_node { struct ib_umem_odp { struct ib_umem umem; + struct ib_ucontext_per_mm *per_mm; + /* * An array of the pages included in the on-demand paging umem. * Indices of pages that are currently not mapped into the device will |