mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
sfc: Remove the STATE_RESETTING flag
This was originally a kludge to fix broken locking, which has since been fixed properly. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
8c8661e4ce
commit
3c78708fe8
2 changed files with 2 additions and 6 deletions
|
@ -140,8 +140,7 @@ static void efx_fini_channels(struct efx_nic *efx);
|
|||
|
||||
#define EFX_ASSERT_RESET_SERIALISED(efx) \
|
||||
do { \
|
||||
if ((efx->state == STATE_RUNNING) || \
|
||||
(efx->state == STATE_RESETTING)) \
|
||||
if (efx->state == STATE_RUNNING) \
|
||||
ASSERT_RTNL(); \
|
||||
} while (0)
|
||||
|
||||
|
@ -1615,7 +1614,6 @@ static int efx_reset(struct efx_nic *efx)
|
|||
goto unlock_rtnl;
|
||||
}
|
||||
|
||||
efx->state = STATE_RESETTING;
|
||||
EFX_INFO(efx, "resetting (%d)\n", method);
|
||||
|
||||
efx_reset_down(efx, &ecmd);
|
||||
|
@ -1646,7 +1644,6 @@ static int efx_reset(struct efx_nic *efx)
|
|||
goto disable;
|
||||
|
||||
EFX_LOG(efx, "reset complete\n");
|
||||
efx->state = STATE_RUNNING;
|
||||
unlock_rtnl:
|
||||
rtnl_unlock();
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue