]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
UBUNTU: SAUCE: RDMA/core: Updated ib_peer_memory
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Thu, 14 Oct 2021 23:04:00 +0000 (01:04 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:43:09 +0000 (18:43 +0100)
commit4ec7ab44a5db0bba155fa65ec33c4e1072742390
tree4137bb7c8089d1c78f9b56b43391d38ab097b158
parente7c17573f232fffb84276ef0120d8a5eb9e59724
UBUNTU: SAUCE: RDMA/core: Updated ib_peer_memory

BugLink: https://launchpad.net/bugs/1947206
- Allow clients to opt out of unmap during invalidation
- Fix race condition with clients when deregistering
  a peer mr.
- Enable ATS for peer memory

To fix the race condition, we disable the client invalidation
notifier before calling destroy_mkey().

The race condition fix depends on being able to call procedure
mlx5_mr_cache_invalidate() twice on the same mr, and not have
the second call fail if the first call succeeds.

Based on upstream kernel patch from Jason Gunthorpe,
adapted for mlnx_ofed 5.2-2 and Ubuntu 20.04.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Amir Tzin <amirtz@nvidia.com>
(provided by Nvidia via private email)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/infiniband/core/ib_peer_mem.h
drivers/infiniband/core/peer_mem.c
drivers/infiniband/hw/mlx5/devx.c
drivers/infiniband/hw/mlx5/mr.c
include/linux/mlx5/mlx5_ifc.h
include/rdma/ib_umem.h
include/rdma/peer_mem.h