diff options
author | Gavin Li <gavinl@nvidia.com> | 2022-03-27 17:45:32 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-05-09 22:54:00 -0700 |
commit | 8324a02c342a36336114a497130826612ed5520d (patch) | |
tree | e4360530a6b2deb6c0a3a226d2c32bd638d6174e /drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c | |
parent | 9eab75d45ddc9d29640fd17199880d39241eeb35 (diff) | |
download | linux-stable-8324a02c342a36336114a497130826612ed5520d.tar.gz linux-stable-8324a02c342a36336114a497130826612ed5520d.tar.bz2 linux-stable-8324a02c342a36336114a497130826612ed5520d.zip |
net/mlx5: Add exit route when waiting for FW
Currently, removing a device needs to get the driver interface lock before
doing any cleanup. If the driver is waiting in a loop for FW init, there
is no way to cancel the wait, instead the device cleanup waits for the
loop to conclude and release the lock.
To allow immediate response to remove device commands, check the TEARDOWN
flag while waiting for FW init, and exit the loop if it has been set.
Signed-off-by: Gavin Li <gavinl@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c')
0 files changed, 0 insertions, 0 deletions