diff options
author | Moshe Shemesh <moshe@nvidia.com> | 2021-12-05 13:07:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-27 13:03:58 +0300 |
commit | d73d81447c6651904dd4a9e3fd88651ff174c1b7 (patch) | |
tree | 692705c9d7b63bcd599b8ad7d1c1ef52b88cde3d /lib/mpi/mpi-mod.c | |
parent | 266e6a36546f0734a2a3ee9b4422c9d5b942c707 (diff) | |
download | linux-d73d81447c6651904dd4a9e3fd88651ff174c1b7.tar.xz |
net/mlx5: Set command entry semaphore up once got index free
[ Upstream commit 8e715cd613a1e872b9d918e912d90b399785761a ]
Avoid a race where command work handler may fail to allocate command
entry index, by holding the command semaphore down till command entry
index is being freed.
Fixes: 410bd754cd73 ("net/mlx5: Add retry mechanism to the command entry index allocation")
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Eran Ben Elisha <eranbe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions