We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6143f6f commit 1486a4fCopy full SHA for 1486a4f
include/scsi/libiscsi.h
@@ -145,6 +145,13 @@ static inline void* iscsi_next_hdr(struct iscsi_task *task)
145
return (void*)task->hdr + task->hdr_len;
146
}
147
148
+static inline bool iscsi_task_is_completed(struct iscsi_task *task)
149
+{
150
+ return task->state == ISCSI_TASK_COMPLETED ||
151
+ task->state == ISCSI_TASK_ABRT_TMF ||
152
+ task->state == ISCSI_TASK_ABRT_SESS_RECOV;
153
+}
154
+
155
/* Connection's states */
156
enum {
157
ISCSI_CONN_INITIAL_STAGE,
0 commit comments