net/mlx5: Set command entry semaphore up once got index free
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: 410bd754 ("net/mlx5: Add retry mechanism to the command entry index allocation") Signed-off-by: NMoshe Shemesh <moshe@nvidia.com> Reviewed-by: NEran Ben Elisha <eranbe@nvidia.com> Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com>
Showing
想要评论请 注册 或 登录