diff options
author | Bhanu Prakash Gollapudi <bprakash@broadcom.com> | 2011-10-24 08:23:56 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-10-30 10:28:55 +0100 |
commit | 99cc600cdd6f938633394523447378f7a43f4340 (patch) | |
tree | dec41281d61e685201b01da0e655f3833154a1a2 /drivers/scsi/bnx2fc/bnx2fc.h | |
parent | [SCSI] st: fix race in st_scsi_execute_end (diff) | |
download | linux-99cc600cdd6f938633394523447378f7a43f4340.tar.xz linux-99cc600cdd6f938633394523447378f7a43f4340.zip |
[SCSI] bnx2fc: Handle ABTS timeout during ulp timeout
If the IO and the corresponding ABTS are not responded by a target, cleanup the
IO and issue explicit logout when ulp timer expires while waiting for ABTS to
complete. Wait for the session to be ready before returning to the SCSI layer.
If the session is not ready let the SCSI-ml escalate the error recovery.
Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bnx2fc/bnx2fc.h')
-rw-r--r-- | drivers/scsi/bnx2fc/bnx2fc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc.h b/drivers/scsi/bnx2fc/bnx2fc.h index 63de1c7cd0cb..b843d710688c 100644 --- a/drivers/scsi/bnx2fc/bnx2fc.h +++ b/drivers/scsi/bnx2fc/bnx2fc.h @@ -145,6 +145,9 @@ #define REC_RETRY_COUNT 1 #define BNX2FC_NUM_ERR_BITS 63 +#define BNX2FC_RELOGIN_WAIT_TIME 200 +#define BNX2FC_RELOGIN_WAIT_CNT 10 + /* bnx2fc driver uses only one instance of fcoe_percpu_s */ extern struct fcoe_percpu_s bnx2fc_global; |