On Wed, Nov 20, 2019 at 12:46:56AM +0300, Roman Bolshakov wrote: > Hi Himanshu, > > I've tried the patch and it seems that LOGO doesn't succeed yet: > [ 1079.073246] qla2xxx [0000:00:06.0]-2870:1: Async-logout - hdl=0 loop-id=0 portid=000002 21:00:00:24:ff:7f:35:c6. > [ 1079.073333] qla2xxx [0000:00:06.0]-5837:1: Async-logout failed - 21:00:00:24:ff:7f:35:c6 hdl=12 portid=000002 comp=31 iop0=19 iop1=c. > > It means that firmware detected IOCB parameter error at offset 0xc. > I'll examine IOCB parameter dumps tomorrow. > FWIW, it was an easy fix, we have to set either explicit LOGO bit or implicit LOGO bit. Free N_Port handle is not allowed to be set alone. I corrected the patch: https://github.com/roolebo/linux/commit/6e86300a60552bfc0a4c49d65d89e5011dd90f10 -- Roman