diff options
author | John Soni Jose <sony.john-n@emulex.com> | 2012-10-20 01:15:51 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-11-27 05:59:42 +0100 |
commit | 7a15800357e382b095b5dcb8edf79c3b2c8317e4 (patch) | |
tree | d9d6ab86b14a5e16a443504cc39d1742047a0fa1 /drivers/scsi/be2iscsi/be_main.h | |
parent | [SCSI] be2iscsi: Fix for MBX timeout issue (diff) | |
download | linux-7a15800357e382b095b5dcb8edf79c3b2c8317e4.tar.xz linux-7a15800357e382b095b5dcb8edf79c3b2c8317e4.zip |
[SCSI] be2iscsi: Fix Unrecoverable Error Detection
Driver periodically checks adapter state,is up fine or not.
Based on the value updates the internal structures of driver.
Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h index 033c053d9471..5b27275cc811 100644 --- a/drivers/scsi/be2iscsi/be_main.h +++ b/drivers/scsi/be2iscsi/be_main.h @@ -750,6 +750,11 @@ free_mgmt_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle); void beiscsi_process_all_cqs(struct work_struct *work); +static inline bool beiscsi_error(struct beiscsi_hba *phba) +{ + return phba->ue_detected || phba->fw_timeout; +} + struct pdu_nop_out { u32 dw[12]; }; |