diff options
author | Eran Ben Elisha <eranbe@nvidia.com> | 2020-08-31 15:04:35 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2020-10-02 10:59:55 -0700 |
commit | 410bd754cd73c4a2ac3856d9a03d7b08f9c906bf (patch) | |
tree | befc8e8b360dc58eec0f0f84afd436326f15ca00 /fs/direct-io.c | |
parent | 1d5558b1f0de81f54ddee05f3793acc5260d107f (diff) | |
download | linux-410bd754cd73c4a2ac3856d9a03d7b08f9c906bf.tar.bz2 |
net/mlx5: Add retry mechanism to the command entry index allocation
It is possible that new command entry index allocation will temporarily
fail. The new command holds the semaphore, so it means that a free entry
should be ready soon. Add one second retry mechanism before returning an
error.
Patch "net/mlx5: Avoid possible free of command entry while timeout comp
handler" increase the possibility to bump into this temporarily failure
as it delays the entry index release for non-callback commands.
Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Eran Ben Elisha <eranbe@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'fs/direct-io.c')
0 files changed, 0 insertions, 0 deletions