linux/drivers/infiniband/hw/mlx5
Yishai Hadas dc2316eba7 IB/mlx5: Fix device memory flows
Fix device memory flows so that only once there will be no live mmaped
VA to a given allocation the matching object will be destroyed.

This prevents a potential scenario that existing VA that was mmaped by
one process might still be used post its deallocation despite that it's
owned now by other process.

The above is achieved by integrating with IB core APIs to manage
mmap/munmap. Only once the refcount will become 0 the DM object and its
underlay area will be freed.

Fixes: 3b113a1ec3 ("IB/mlx5: Support device memory type attribute")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20191212100237.330654-3-leon@kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
2019-12-12 16:55:36 -05:00
..
ah.c RDMA: Handle AH allocations by IB/core 2019-04-08 13:05:25 -03:00
cmd.c IB/mlx5: Fix device memory flows 2019-12-12 16:55:36 -05:00
cmd.h IB/mlx5: Fix device memory flows 2019-12-12 16:55:36 -05:00
cong.c infiniband: mlx5: no need to check return value of debugfs_create functions 2019-01-24 09:22:29 -07:00
cq.c IB/umem: remove the dmasync argument to ib_umem_get 2019-11-17 10:37:00 -04:00
devx.c IB/umem: remove the dmasync argument to ib_umem_get 2019-11-17 10:37:00 -04:00
doorbell.c IB/umem: remove the dmasync argument to ib_umem_get 2019-11-17 10:37:00 -04:00
flow.c IB/mlx5: Support flow counters offset for bulk counters 2019-11-13 15:42:36 -04:00
gsi.c IB/mlx5: Align usage of QP1 create flags with rest of mlx5 defines 2019-10-22 16:39:49 -03:00
ib_rep.c IB/mlx5: Rename profile and init methods 2019-11-11 12:15:29 -08:00
ib_rep.h IB/mlx5: Rename profile and init methods 2019-11-11 12:15:29 -08:00
ib_virt.c IB/mlx5: Implement callbacks for getting VFs GUID attributes 2019-11-22 18:17:24 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mad.c RDMA: Change MAD processing function to remove extra casting and parameter 2019-11-12 20:20:15 -04:00
main.c IB/mlx5: Fix device memory flows 2019-12-12 16:55:36 -05:00
Makefile RDMA/mlx5: Return ODP type per MR 2019-10-22 15:22:47 -03:00
mem.c IB/mlx5: Test write combining support 2019-10-31 15:52:51 -03:00
mlx5_ib.h IB/mlx5: Fix device memory flows 2019-12-12 16:55:36 -05:00
mr.c hmm related patches for 5.5 2019-11-30 10:33:14 -08:00
odp.c hmm related patches for 5.5 2019-11-30 10:33:14 -08:00
qp.c RDMA subsystem updates for 5.5 2019-11-27 10:17:28 -08:00
restrack.c RDMA/nldev: Provide MR statistics 2019-10-22 15:33:31 -03:00
srq_cmd.c mlx5: Use refcount_t for refcount 2019-08-07 11:01:48 -07:00
srq.c IB/umem: remove the dmasync argument to ib_umem_get 2019-11-17 10:37:00 -04:00
srq.h RDMA: Handle SRQ allocations by IB/core 2019-04-08 13:05:25 -03:00