Move cancel_task and cancel_all_tasks from scsi-lowlevel.c to scsi-command.c

These two functions belong in the iscsi layer, not the scsi layer so move them
out from scsi-lowlevel.c so that we can start turning scsi-lowlevel.c to a pure
scsi layer and remove all dependencies to iscsi from it.
This commit is contained in:
Ronnie Sahlberg
2012-11-11 09:44:11 -08:00
parent 49af416f47
commit 3b05e9996f
6 changed files with 59 additions and 62 deletions

View File

@@ -953,8 +953,8 @@ EXTERN int scsi_task_add_data_in_buffer(struct scsi_task *task, int len, unsigne
* To cancel the task also a the target you need to call the task management functions.
*/
EXTERN int
iscsi_scsi_task_cancel(struct iscsi_context *iscsi,
struct scsi_task *task);
iscsi_scsi_cancel_task(struct iscsi_context *iscsi,
struct scsi_task *task);
/*
* This function is used when you want to cancel all scsi tasks.