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

@@ -103,7 +103,7 @@ iscsi_task_mgmt_abort_task_async(struct iscsi_context *iscsi,
struct scsi_task *task,
iscsi_command_cb cb, void *private_data)
{
iscsi_scsi_task_cancel(iscsi, task);
iscsi_scsi_cancel_task(iscsi, task);
return iscsi_task_mgmt_async(iscsi,
task->lun, ISCSI_TM_ABORT_TASK,