[SCSI] bnx2fc: Handle SRR LS_ACC drop scenario
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Mon, 24 Oct 2011 06:23:57 +0000 (23:23 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 30 Oct 2011 10:04:01 +0000 (14:04 +0400)
commit32c30454507b4f5f00661ac12ddbcc150983b9ff
tree1cbe2ab0a1f5b630686bd5d6bf37d0a9bab3cb9b
parent99cc600cdd6f938633394523447378f7a43f4340
[SCSI] bnx2fc: Handle SRR LS_ACC drop scenario

When SRR LS_ACC is dropped, the driver was not issuing ABTS for SRR when it
times out. Since the target received SRR, it was able to send the XFER_RDY and
the the original IO request completed successfully. In this condition ABTS was
not sent during bnx2fc_srr_compl(). Fix this by first checking for ELS timeout
and issue ABTS before checking if original IO request is complete.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bnx2fc/bnx2fc_els.c