diff options
author | Yishai Hadas <[email protected]> | 2019-07-23 09:57:28 +0300 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2019-07-24 16:50:03 -0300 |
commit | b9332dad987018745a0c0bb718d12dacfa760489 (patch) | |
tree | b26a02f21607b0e427af6743c8ece542b4d86fa6 /tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py | |
parent | 9ec4483a3f0f71a228a5933bc040441322bfb090 (diff) |
IB/mlx5: Fix clean_mr() to work in the expected order
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/[email protected]
Cc: <[email protected]> # 4.3
Fixes: 8a187ee52b04 ("IB/mlx5: Support the new memory registration API")
Signed-off-by: Yishai Hadas <[email protected]>
Reviewed-by: Artemy Kovalyov <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py')
0 files changed, 0 insertions, 0 deletions