RDMA/umem: Use dma-buf locked API to solve deadlock
authorMaor Gottlieb <maorg@nvidia.com>
Mon, 30 Jan 2023 14:25:50 +0000 (16:25 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 31 Jan 2023 14:24:49 +0000 (10:24 -0400)
commitc956940a4ab73a87d0165e911c001dbdd2c8200f
tree54aa29415d04ca3326b5a73e511d315ceb9a7b6c
parentb7e08a5a63a11627601915473c3b569c1f6c6c06
RDMA/umem: Use dma-buf locked API to solve deadlock

The cited commit moves umem to call the unlocked versions of dmabuf
unmap/map attachment, but the lock is held while calling to these
functions, hence move back to the locked versions of these APIs.

Fixes: 21c9c5c0784f ("RDMA/umem: Prepare to dynamic dma-buf locking specification")
Link: https://lore.kernel.org/r/311c2cb791f8af75486df446819071357353db1b.1675088709.git.leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/umem_dmabuf.c