diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/libiscsi.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index ba2760802ded..e71d6e96eca6 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -83,6 +83,12 @@ struct iscsi_mgmt_task { | |||
83 | struct list_head running; | 83 | struct list_head running; |
84 | }; | 84 | }; |
85 | 85 | ||
86 | enum { | ||
87 | ISCSI_TASK_COMPLETED, | ||
88 | ISCSI_TASK_PENDING, | ||
89 | ISCSI_TASK_RUNNING, | ||
90 | }; | ||
91 | |||
86 | struct iscsi_cmd_task { | 92 | struct iscsi_cmd_task { |
87 | /* | 93 | /* |
88 | * Becuae LLDs allocate their hdr differently, this is a pointer to | 94 | * Becuae LLDs allocate their hdr differently, this is a pointer to |
@@ -101,6 +107,8 @@ struct iscsi_cmd_task { | |||
101 | struct iscsi_conn *conn; /* used connection */ | 107 | struct iscsi_conn *conn; /* used connection */ |
102 | struct iscsi_mgmt_task *mtask; /* tmf mtask in progr */ | 108 | struct iscsi_mgmt_task *mtask; /* tmf mtask in progr */ |
103 | 109 | ||
110 | /* state set/tested under session->lock */ | ||
111 | int state; | ||
104 | struct list_head running; /* running cmd list */ | 112 | struct list_head running; /* running cmd list */ |
105 | void *dd_data; /* driver/transport data */ | 113 | void *dd_data; /* driver/transport data */ |
106 | }; | 114 | }; |
@@ -134,7 +142,7 @@ struct iscsi_conn { | |||
134 | struct kfifo *immqueue; /* immediate xmit queue */ | 142 | struct kfifo *immqueue; /* immediate xmit queue */ |
135 | struct kfifo *mgmtqueue; /* mgmt (control) xmit queue */ | 143 | struct kfifo *mgmtqueue; /* mgmt (control) xmit queue */ |
136 | struct list_head mgmt_run_list; /* list of control tasks */ | 144 | struct list_head mgmt_run_list; /* list of control tasks */ |
137 | struct kfifo *xmitqueue; /* data-path cmd queue */ | 145 | struct list_head xmitqueue; /* data-path cmd queue */ |
138 | struct list_head run_list; /* list of cmds in progress */ | 146 | struct list_head run_list; /* list of cmds in progress */ |
139 | struct work_struct xmitwork; /* per-conn. xmit workqueue */ | 147 | struct work_struct xmitwork; /* per-conn. xmit workqueue */ |
140 | /* | 148 | /* |