]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libfc: do not fc_io_compl on fsp w/o any scsi_cmnd associated
authorYi Zou <yi.zou@intel.com>
Wed, 1 Dec 2010 00:19:20 +0000 (16:19 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 21 Dec 2010 18:24:25 +0000 (12:24 -0600)
commit4d7149531797024cb400c7d2512e0612fba61bba
tree4625c193d2a7b2ae2c6f23f3cfed0e6ea84a2754
parent97eaafa567e3a815c1f83684b5b2948823f0e8de
[SCSI] libfc: do not fc_io_compl on fsp w/o any scsi_cmnd associated

Do not call fc_io_compl() on fsp w/o any scsi_cmnd, e.g., lun reset is built
inside fc_fcp, not from a scsi command from queuecommnd from scsi-ml, so in
in case target is buggy that is invalid flags in the FCP_RSP, as we have seen
in some SAN Blaze target where all bits in flags are 0, we do not want to call
io_compl on this fsp.

[ Comment block added by Robert Love ]

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_fcp.c