Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274344
b: refs/heads/master
c: 2235007
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Nicholas Bellinger committed Nov 2, 2011
1 parent e745b4f commit 2d3270e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: ed327ed337a6ee6919ee092c82ac3edeb63bd4de
refs/heads/master: 2235007c4d3245c0eca5e49497aafe5a111c00fb
6 changes: 5 additions & 1 deletion trunk/drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,10 @@ void transport_complete_task(struct se_task *task, int success)
complete(&task->task_stop_comp);
return;
}

if (!success)
cmd->t_tasks_failed = 1;

/*
* Decrement the outstanding t_task_cdbs_left count. The last
* struct se_task from struct se_cmd will complete itself into the
Expand All @@ -743,7 +747,7 @@ void transport_complete_task(struct se_task *task, int success)
return;
}

if (!success || cmd->t_tasks_failed) {
if (cmd->t_tasks_failed) {
if (!task->task_error_status) {
task->task_error_status =
PYX_TRANSPORT_UNKNOWN_SAM_OPCODE;
Expand Down

0 comments on commit 2d3270e

Please sign in to comment.