mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
[SCSI] libiscsi: add task aborted state
If a task did not complete normally due to a TMF, libiscsi will now complete the task with the state ISCSI_TASK_ABRT_TMF. Drivers like bnx2i that need to free resources if a command did not complete normally can then check the task state. If a driver does not need to send a special command if we have dropped the session then they can check for ISCSI_TASK_ABRT_SESS_RECOV. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
1336aed10b
commit
b3cd5050bf
4 changed files with 41 additions and 32 deletions
|
@ -86,6 +86,8 @@ enum {
|
|||
ISCSI_TASK_COMPLETED,
|
||||
ISCSI_TASK_PENDING,
|
||||
ISCSI_TASK_RUNNING,
|
||||
ISCSI_TASK_ABRT_TMF, /* aborted due to TMF */
|
||||
ISCSI_TASK_ABRT_SESS_RECOV, /* aborted due to session recovery */
|
||||
};
|
||||
|
||||
struct iscsi_r2t_info {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue