OpenCloudOS-Kernel/drivers/scsi/libfc
Chris Leech d5c3eb26d9 scsi: libfc: Don't have fc_exch_find log errors on a new exchange
With the error message I added in "libfc: sanity check cpu number
extracted from xid" I didn't account for the fact that fc_exch_find is
called with FC_XID_UNKNOWN at the start of a new exchange if we are the
responder.

It doesn't come up with the initiator much, but that's basically every
exchange for a target.  By checking the xid for FC_XID_UNKNOWN first, we
not only prevent the erroneous error message, but skip the unnecessary
lookup attempt as well.

[mkp: applied by hand due to conflict with Hannes' libfc patch series]

Signed-off-by: Chris Leech <cleech@redhat.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-11-08 17:29:58 -05:00
..
Makefile [SCSI] libfc: add some generic NPIV support routines to libfc 2009-12-04 12:00:56 -06:00
fc_disc.c scsi: libfc: Replace ->rport_flush_queue callback with function call 2016-11-08 17:29:55 -05:00
fc_elsct.c scsi: libfc: Replace ->exch_seq_send callback with function call 2016-11-08 17:29:55 -05:00
fc_exch.c scsi: libfc: Don't have fc_exch_find log errors on a new exchange 2016-11-08 17:29:58 -05:00
fc_fcp.c scsi: libfc: Replace ->seq_start_next callback with function call 2016-11-08 17:29:56 -05:00
fc_frame.c [SCSI] libfc, fcoe, bnx2fc: cleanup fcoe_dev_stats 2012-07-20 08:31:47 +01:00
fc_libfc.c scsi: libfc: Replace ->seq_start_next callback with function call 2016-11-08 17:29:56 -05:00
fc_libfc.h libfc, libfcoe, fcoe: Convert debug_logging macros to pr_info 2012-12-14 10:38:55 -08:00
fc_lport.c scsi: libfc: Replace ->exch_done callback with function call 2016-11-08 17:29:56 -05:00
fc_npiv.c libfc: Use the correct function name in kernel-doc comment. 2015-11-09 17:15:52 -08:00
fc_rport.c scsi: libfc: Remove fc_rport_init() 2016-11-08 17:29:56 -05:00