diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2019-07-23 09:57:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-06 19:06:56 +0200 |
commit | 924308d2a6ea49bde4db326715ed5a6c584455dd (patch) | |
tree | 29520e6d78c0876f6f0f7f92f5896e6348ab37e9 /drivers/pci/pci.c | |
parent | 7e5ce9f3943c7341f101e2783f1e12df4647553c (diff) | |
download | linux-stable-924308d2a6ea49bde4db326715ed5a6c584455dd.tar.gz linux-stable-924308d2a6ea49bde4db326715ed5a6c584455dd.tar.bz2 linux-stable-924308d2a6ea49bde4db326715ed5a6c584455dd.zip |
IB/mlx5: Fix clean_mr() to work in the expected order
commit b9332dad987018745a0c0bb718d12dacfa760489 upstream.
Any dma map underlying the MR should only be freed once the MR is fenced
at the hardware.
As of the above we first destroy the MKEY and just after that can safely
call to dma_unmap_single().
Link: https://lore.kernel.org/r/20190723065733.4899-6-leon@kernel.org
Cc: <stable@vger.kernel.org> # 4.3
Fixes: 8a187ee52b04 ("IB/mlx5: Support the new memory registration API")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/pci.c')
0 files changed, 0 insertions, 0 deletions