sfc: Strengthen EFX_ASSERT_RESET_SERIALISED
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
80cb9a0f7f
commit
332c1ce9e7
|
@ -186,7 +186,8 @@ static void efx_fini_channels(struct efx_nic *efx);
|
|||
|
||||
#define EFX_ASSERT_RESET_SERIALISED(efx) \
|
||||
do { \
|
||||
if (efx->state == STATE_RUNNING) \
|
||||
if ((efx->state == STATE_RUNNING) || \
|
||||
(efx->state == STATE_DISABLED)) \
|
||||
ASSERT_RTNL(); \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue