summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fnic/fnic_io.h
diff options
context:
space:
mode:
authorHiral Patel <hiralpat@cisco.com>2013-02-12 17:01:01 -0800
committerJames Bottomley <JBottomley@Parallels.com>2013-02-22 17:31:09 +0000
commit14eb5d905d16ecd33e5e3113eb44cfa2bb47e7d7 (patch)
tree1f2b548b0d70db43afc389caa4151cbd2fa8f242 /drivers/scsi/fnic/fnic_io.h
parenta0bf1ca27b644c1c4b1f0ea2d81f99471b2549e8 (diff)
downloadop-kernel-dev-14eb5d905d16ecd33e5e3113eb44cfa2bb47e7d7.zip
op-kernel-dev-14eb5d905d16ecd33e5e3113eb44cfa2bb47e7d7.tar.gz
[SCSI] fnic: New debug flags and debug log messages
Added new fnic debug flags for identifying IO state at every stage of IO while debugging and also added more log messages for better debugging capability. Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com> Signed-off-by: Hiral Patel <hiralpat@cisco.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/fnic/fnic_io.h')
-rw-r--r--drivers/scsi/fnic/fnic_io.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/fnic/fnic_io.h b/drivers/scsi/fnic/fnic_io.h
index 3455c34..c35b8f1 100644
--- a/drivers/scsi/fnic/fnic_io.h
+++ b/drivers/scsi/fnic/fnic_io.h
@@ -45,7 +45,8 @@ enum fnic_sgl_list_type {
};
enum fnic_ioreq_state {
- FNIC_IOREQ_CMD_PENDING = 0,
+ FNIC_IOREQ_NOT_INITED = 0,
+ FNIC_IOREQ_CMD_PENDING,
FNIC_IOREQ_ABTS_PENDING,
FNIC_IOREQ_ABTS_COMPLETE,
FNIC_IOREQ_CMD_COMPLETE,
@@ -60,6 +61,7 @@ struct fnic_io_req {
u8 sgl_type; /* device DMA descriptor list type */
u8 io_completed:1; /* set to 1 when fw completes IO */
u32 port_id; /* remote port DID */
+ unsigned long start_time; /* in jiffies */
struct completion *abts_done; /* completion for abts */
struct completion *dr_done; /* completion for device reset */
};
OpenPOWER on IntegriCloud