diff options
author | Yishai Hadas <[email protected]> | 2019-07-23 09:57:26 +0300 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2019-07-24 16:43:19 -0300 |
commit | afd1417404fba6dbfa6c0a8e5763bd348da682e4 (patch) | |
tree | 9baef0d81c4da918402fb3807b4d81f1c8670e46 /drivers/fpga/fpga-mgr.c | |
parent | 6a053953739d23694474a5f9c81d1a30093da81a (diff) |
IB/mlx5: Use direct mkey destroy command upon UMR unreg failure
Use a direct firmware command to destroy the mkey in case the unreg UMR
operation has failed.
This prevents a case that a mkey will leak out from the cache post a
failure to be destroyed by a UMR WR.
In case the MR cache limit didn't reach a call to add another entry to the
cache instead of the destroyed one is issued.
In addition, replaced a warn message to WARN_ON() as this flow is fatal
and can't happen unless some bug around.
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]> # 4.10
Fixes: 49780d42dfc9 ("IB/mlx5: Expose MR cache for mlx5_ib")
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 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions