diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-04-23 11:35:33 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-05-06 18:11:14 -0400 |
commit | 6bb35e009b656b36f7985057822c5fbf53ea75b7 (patch) | |
tree | 31384150dbd2828ee72a0802efb23692511f032f /drivers/target/target_core_device.c | |
parent | bd31377878868a47b2d2e6f570fb0cace828555b (diff) |
target: replace ->execute_task with ->execute_cmd
Make CDB emulation work on commands instead of tasks again as a preparation
of removing tasks completely.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_device.c')
-rw-r--r-- | drivers/target/target_core_device.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index d175ee260a06..e621350feebc 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c | |||
@@ -643,9 +643,8 @@ void core_dev_unexport( | |||
643 | lun->lun_se_dev = NULL; | 643 | lun->lun_se_dev = NULL; |
644 | } | 644 | } |
645 | 645 | ||
646 | int target_report_luns(struct se_task *se_task) | 646 | int target_report_luns(struct se_cmd *se_cmd) |
647 | { | 647 | { |
648 | struct se_cmd *se_cmd = se_task->task_se_cmd; | ||
649 | struct se_dev_entry *deve; | 648 | struct se_dev_entry *deve; |
650 | struct se_session *se_sess = se_cmd->se_sess; | 649 | struct se_session *se_sess = se_cmd->se_sess; |
651 | unsigned char *buf; | 650 | unsigned char *buf; |
@@ -696,8 +695,7 @@ done: | |||
696 | buf[3] = (lun_count & 0xff); | 695 | buf[3] = (lun_count & 0xff); |
697 | transport_kunmap_data_sg(se_cmd); | 696 | transport_kunmap_data_sg(se_cmd); |
698 | 697 | ||
699 | se_task->task_scsi_status = GOOD; | 698 | target_complete_cmd(se_cmd, GOOD); |
700 | transport_complete_task(se_task, 1); | ||
701 | return 0; | 699 | return 0; |
702 | } | 700 | } |
703 | 701 | ||