summaryrefslogtreecommitdiff
path: root/drivers/scsi/be2iscsi/be.h
diff options
context:
space:
mode:
authorJohn Soni Jose <sony.john-n@emulex.com>2012-10-19 23:12:49 (GMT)
committerJames Bottomley <JBottomley@Parallels.com>2012-11-27 04:59:37 (GMT)
commit72fb46a9d5ec2dfe4dc65eb3bfb795510aacbd1f (patch)
treecf0af61715353461aa901599c9a38944e0365045 /drivers/scsi/be2iscsi/be.h
parent4d4d1ef8cbc33b650a96bbdf0ca9b14db10e1b29 (diff)
downloadlinux-72fb46a9d5ec2dfe4dc65eb3bfb795510aacbd1f.tar.xz
[SCSI] be2iscsi: Fix kernel panic in blk_iopoll disable mode.
Kernel used to panic while running IO is disable mode, as there was an issue with getting the correct EQ on which completion has come. Fix done is create workqueue per hba and work item for each EQ created. 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.h')
-rw-r--r--drivers/scsi/be2iscsi/be.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be.h b/drivers/scsi/be2iscsi/be.h
index a50b6a9..3c1f8e9 100644
--- a/drivers/scsi/be2iscsi/be.h
+++ b/drivers/scsi/be2iscsi/be.h
@@ -84,9 +84,12 @@ static inline void queue_tail_inc(struct be_queue_info *q)
/*ISCSI */
struct be_eq_obj {
+ bool todo_mcc_cq;
+ bool todo_cq;
struct be_queue_info q;
struct beiscsi_hba *phba;
struct be_queue_info *cq;
+ struct work_struct work_cqs; /* Work Item */
struct blk_iopoll iopoll;
};