On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran <quinn.tran@xxxxxxxxxx> > > If user swaps one target port for another target port for same > switch port, the new target port is not being recognized by the > driver. Current code assumes that old Target port has recovered > from link down. The fix will ask switch what is the WWPN of a > specific NportID (GPNID) rather than assuming it's the same Target > port which has came back. > > Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") > Cc: <stable@xxxxxxxxxxxxxxx> # 4.10+ > Signed-off-by: Quinn Tran <quinn.tran@xxxxxxxxxx> > Signed-off-by: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx> > --- > drivers/scsi/qla2xxx/qla_gs.c | 164 ++++++++++++++++++++++++++++++-------- > drivers/scsi/qla2xxx/qla_init.c | 6 +- > drivers/scsi/qla2xxx/qla_os.c | 35 +++++++- > drivers/scsi/qla2xxx/qla_target.c | 35 ++++++-- > 4 files changed, 194 insertions(+), 46 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)