On Mon, 2019-05-06 at 13:52 -0700, Himanshu Madhani wrote: > From: Quinn Tran <qutran@xxxxxxxxxxx> > > During EEH error recovery testing, it was discovered that > driver's reset() callback partially frees resources used by driver, > leaving some stale memory. After reset() is done and when resume() > callback in driver uses old data which results into error leaving > adapter disabled due to PCIe error. > > This patch does cleanup for EEH recovery code path and prevents > adapter from getting disabled. > > Signed-off-by: Quinn Tran <qutran@xxxxxxxxxxx> > Signed-off-by: Himanshu Madhani <hmadhani@xxxxxxxxxxx> > --- > drivers/scsi/qla2xxx/qla_os.c | 221 ++++++++++++++++-------------------------- > 1 file changed, 82 insertions(+), 139 deletions(-) > > Reviewed-by: Ewan D. Milne <emilne@xxxxxxxxxx>