android_kernel_xiaomi_sdm845/drivers/scsi/libfc
Joe Eykholt 883a337cf8 [SCSI] libfc: handle discovery failure more correctly.
Abhijeet Joglekar wrote: "In gpn_ft_resp, if the payload is short,
or unexpected response or out of sequence frame, then we just
return and do nothing. We should either enter fc_disc_done()
with DISC_EV_FAIL which will then restart any queued discovery
requests or call lport module which will reset local port,
or we should call fc_disc_error() so that the gpn_ft is retried.

The situation as is causes discovery to remain pending and never
get restarted, in these rare cases.  We saw this due to a coding
bug in fc_disc before.  The only ways it could happen would be
bugs, packet corruption or an FC fabric problem.

Change it to fail discovery.  The local port will restart
discovery, although it probably should just give up until
the next link flap.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2009-09-10 12:07:50 -05:00
..
fc_disc.c [SCSI] libfc: handle discovery failure more correctly. 2009-09-10 12:07:50 -05:00
fc_elsct.c [SCSI] libfc: change elsct to use FC_ID instead of rdata 2009-09-10 12:07:41 -05:00
fc_exch.c [SCSI] fcoe, libfc: fully makes use of per cpu exch pool and then removes em_lock 2009-09-05 09:47:37 -05:00
fc_fcp.c [SCSI] libfc: change elsct to use FC_ID instead of rdata 2009-09-10 12:07:41 -05:00
fc_frame.c
fc_lport.c [SCSI] libfc: make rport module maintain the rport list 2009-09-10 12:07:46 -05:00
fc_rport.c [SCSI] libfc: move rport_lookup into fc_rport.c 2009-09-10 12:07:47 -05:00
Makefile