]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Take TIR destruction out of the TIR list lock
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Fri, 23 Apr 2021 16:14:37 +0000 (19:14 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 26 Jul 2021 16:50:37 +0000 (09:50 -0700)
commit2a15121c2f02301bbc3b4673dcd57c7548b8c3f1
tree9d394a1c3893d93a2136318a3aae63cbddf546b1
parente4c0a04c8b9abc0bed36f0ac38e589176a4f677e
net/mlx5: Take TIR destruction out of the TIR list lock

res->td.list_lock protects the list of TIRs. There is no point to call
mlx5_core_destroy_tir() and invoke a firmware command under this lock.
This commit moves this call outside of the lock and puts it after
deleting the TIR from the list to ensure that TIRs are always alive
while in the list.

Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_common.c