diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-11-23 06:53:58 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-12-14 06:26:27 -0500 |
commit | ef804a849ffae058a783e9dddd24cc1a555bbdb4 (patch) | |
tree | e67737300936c2b94359ded96d9113981cb610aa /drivers | |
parent | c4795fb20edf2fe2c862c8fe9f8b681edeb79ac1 (diff) |
target: fold se_task.task_sense into task_flags
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/target/target_core_transport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 72c13b7a349f..e13fafa6f526 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -709,7 +709,7 @@ void transport_complete_task(struct se_task *task, int success) | |||
709 | if (dev && dev->transport->transport_complete) { | 709 | if (dev && dev->transport->transport_complete) { |
710 | if (dev->transport->transport_complete(task) != 0) { | 710 | if (dev->transport->transport_complete(task) != 0) { |
711 | cmd->se_cmd_flags |= SCF_TRANSPORT_TASK_SENSE; | 711 | cmd->se_cmd_flags |= SCF_TRANSPORT_TASK_SENSE; |
712 | task->task_sense = 1; | 712 | task->task_flags |= TF_HAS_SENSE; |
713 | success = 1; | 713 | success = 1; |
714 | } | 714 | } |
715 | } | 715 | } |
@@ -2346,7 +2346,7 @@ static int transport_get_sense_data(struct se_cmd *cmd) | |||
2346 | 2346 | ||
2347 | list_for_each_entry_safe(task, task_tmp, | 2347 | list_for_each_entry_safe(task, task_tmp, |
2348 | &cmd->t_task_list, t_list) { | 2348 | &cmd->t_task_list, t_list) { |
2349 | if (!task->task_sense) | 2349 | if (!(task->task_flags & TF_HAS_SENSE)) |
2350 | continue; | 2350 | continue; |
2351 | 2351 | ||
2352 | if (!dev->transport->get_sense_buffer) { | 2352 | if (!dev->transport->get_sense_buffer) { |