Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302418
b: refs/heads/master
c: d28d96d
h: refs/heads/master
v: v3
  • Loading branch information
Jörn Engel authored and Nicholas Bellinger committed May 11, 2012
1 parent 3d9e5ff commit a276891
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 11e764bd5ed4bb930e0ec5dd161df58307507347
refs/heads/master: d28d96dcf635410422b41eca5203b0470dd059c1
14 changes: 5 additions & 9 deletions trunk/drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1970,7 +1970,7 @@ static inline int transport_execute_task_attr(struct se_cmd *cmd)
* Called from fabric module context in transport_generic_new_cmd() and
* transport_generic_process_write()
*/
static int transport_execute_tasks(struct se_cmd *cmd)
static void transport_execute_tasks(struct se_cmd *cmd)
{
int add_tasks;
struct se_device *se_dev = cmd->se_dev;
Expand All @@ -1984,16 +1984,12 @@ static int transport_execute_tasks(struct se_cmd *cmd)
* attribute for the tasks of the received struct se_cmd CDB
*/
add_tasks = transport_execute_task_attr(cmd);
if (!add_tasks)
goto execute_tasks;

__transport_execute_tasks(se_dev, cmd);
return 0;
if (add_tasks) {
__transport_execute_tasks(se_dev, cmd);
return;
}
}

execute_tasks:
__transport_execute_tasks(se_dev, NULL);
return 0;
}

static int __transport_execute_tasks(struct se_device *dev, struct se_cmd *new_cmd)
Expand Down

0 comments on commit a276891

Please sign in to comment.