]> Pileus Git - ~andy/linux/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)
commitd889b30a9196c453120ca54323fe80acb4c27b94
tree4625c193d2a7b2ae2c6f23f3cfed0e6ea84a2754
parent9b90dc80ba2e566a48585174b1e5ab00e16f0456
[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