diff options
author | Hiral Patel <hiralpat@cisco.com> | 2013-02-12 17:01:01 -0800 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-02-22 17:31:09 +0000 |
commit | 14eb5d905d16ecd33e5e3113eb44cfa2bb47e7d7 (patch) | |
tree | 1f2b548b0d70db43afc389caa4151cbd2fa8f242 /drivers/scsi/fnic/fnic_io.h | |
parent | a0bf1ca27b644c1c4b1f0ea2d81f99471b2549e8 (diff) | |
download | linux-stable-14eb5d905d16ecd33e5e3113eb44cfa2bb47e7d7.tar.gz linux-stable-14eb5d905d16ecd33e5e3113eb44cfa2bb47e7d7.tar.bz2 linux-stable-14eb5d905d16ecd33e5e3113eb44cfa2bb47e7d7.zip |
[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.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/fnic/fnic_io.h b/drivers/scsi/fnic/fnic_io.h index 3455c34ada48..c35b8f1889ea 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 */ }; |