[SCSI] libfc: fix slowpath error from WARN_ON in fc_fcp_send_data
authorYi Zou <yi.zou@intel.com>
Tue, 20 Jul 2010 22:19:10 +0000 (15:19 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:05:44 +0000 (09:05 -0500)
commitba402804ac2447ad41f4919603bf3e6f6db63110
tree86ae6efbc2456403a816e33594d6d849cbd854b7
parent2cf75f1c8aa4cab3ace57f9159f1dc85cba69d38
[SCSI] libfc: fix slowpath error from WARN_ON in fc_fcp_send_data

This is exposed by a mpio test using EMC CLARiiON targets when LUN
tresspassing happens, the burst length from the XFER_READY for the
MODE SELECT(10) is 19 bytes, much smaller than FC_MIN_MAX_PAYLOAD as
256 bytes. This patch removes the related two WARN_ON()s.

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