aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2fc
diff options
context:
space:
mode:
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>2011-08-04 20:38:45 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 10:35:40 -0400
commit81214013130cd24142f6465f7f5a256fed530c17 (patch)
tree5e7305ecafdd685527320ae92184684c6db4a8cf /drivers/scsi/bnx2fc
parent291fbe138f820f880b3e70852d200c0f2527430c (diff)
[SCSI] bnx2fc: IO errors when receiving unsolicited LOGO
During the unsolicited LOGO processing, the session is uploaded and offloaded after the relogin is complete. In between any new IOs are errored back as the upload completion flag is set. Upon exhausting the retry count, the application fails the IOs. Return target busy for all the cases when session is not ready. Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bnx2fc')
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_io.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c
index cb1791cfc509..120618d95349 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_io.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_io.c
@@ -1789,12 +1789,6 @@ int bnx2fc_queuecommand(struct Scsi_Host *host,
1789 tgt = (struct bnx2fc_rport *)&rp[1]; 1789 tgt = (struct bnx2fc_rport *)&rp[1];
1790 1790
1791 if (!test_bit(BNX2FC_FLAG_SESSION_READY, &tgt->flags)) { 1791 if (!test_bit(BNX2FC_FLAG_SESSION_READY, &tgt->flags)) {
1792 if (test_bit(BNX2FC_FLAG_UPLD_REQ_COMPL, &tgt->flags)) {
1793 sc_cmd->result = DID_NO_CONNECT << 16;
1794 sc_cmd->scsi_done(sc_cmd);
1795 return 0;
1796
1797 }
1798 /* 1792 /*
1799 * Session is not offloaded yet. Let SCSI-ml retry 1793 * Session is not offloaded yet. Let SCSI-ml retry
1800 * the command. 1794 * the command.