Re: [PATCH v2] tg3: driver sleeps indefinitely when EEH errors exceed eeh_max_freezes
From: David Miller
Date: Thu Jun 18 2020 - 23:35:51 EST
From: David Christensen <drc@xxxxxxxxxxxxxxxxxx>
Date: Wed, 17 Jun 2020 11:51:17 -0700
> The driver function tg3_io_error_detected() calls napi_disable twice,
> without an intervening napi_enable, when the number of EEH errors exceeds
> eeh_max_freezes, resulting in an indefinite sleep while holding rtnl_lock.
>
> Add check for pcierr_recovery which skips code already executed for the
> "Frozen" state.
>
> Signed-off-by: David Christensen <drc@xxxxxxxxxxxxxxxxxx>
Applied and queued up for -stable, thanks.