]> git.karo-electronics.de Git - linux-beck.git/commit
[SCSI] libfc: do not immediately retry the cmd when seq_send fails in fc_fcp_send_data
authorYi Zou <yi.zou@intel.com>
Mon, 16 May 2011 23:45:57 +0000 (16:45 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 24 May 2011 16:37:25 +0000 (12:37 -0400)
commit8467b96c035a45418c5db2619f396b7131b4efa8
tree3ac398e8052932ebc1846b0d506b020a73d8ea9c
parent0a219edb263ef93e4fd7a83804bea667e72a7bfa
[SCSI] libfc: do not immediately retry the cmd when seq_send fails in fc_fcp_send_data

Currently, when seq_send() fails in fc_fcp_send_data(),
fc_fcp_retry_cmd() would complete this failed I/O directly and let
scsi-ml retry. However, target side is not notified which may hang the
target. Instead, we should just bail out from from fc_fcp_send_data
and let scsi-ml times it out and aborts this I/O instead.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
drivers/scsi/libfc/fc_fcp.c