[SCSI] libiscsi: add task aborted state
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 13 May 2009 22:57:49 +0000 (17:57 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 23 May 2009 20:44:13 +0000 (15:44 -0500)
commitb3cd5050bf8eb32ceecee129cac7c59e6f1668c4
tree5aa4999dd1c5c7fe83354f3965764f0849afaff3
parent1336aed10b8af791378b017f0fa8da4e5b827b8d
[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>
drivers/infiniband/ulp/iser/iscsi_iser.c
drivers/scsi/libiscsi.c
drivers/scsi/libiscsi_tcp.c
include/scsi/libiscsi.h