Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263295
b: refs/heads/master
c: 72f4ba1
h: refs/heads/master
i:
  263293: f88a870
  263291: ab03435
  263287: 8d8b338
  263279: 9f4d9d8
  263263: b0f9475
  263231: 065a773
  263167: b80f9c7
v: v3
  • Loading branch information
Nicholas Bellinger committed Aug 22, 2011
1 parent e44aaca commit fbdf2da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: 12850626e2717f866a94e6ced724e3efe5a0aab8
refs/heads/master: 72f4ba1e32a1e5da31dcf14ea4b8985ae88a8bdb
14 changes: 8 additions & 6 deletions trunk/drivers/target/target_core_cdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,8 +1077,6 @@ target_emulate_unmap(struct se_task *task)
size -= 16;
}

task->task_scsi_status = GOOD;
transport_complete_task(task, 1);
err:
transport_kunmap_first_data_page(cmd);

Expand Down Expand Up @@ -1115,8 +1113,6 @@ target_emulate_write_same(struct se_task *task, u32 num_blocks)
return ret;
}

task->task_scsi_status = GOOD;
transport_complete_task(task, 1);
return 0;
}

Expand Down Expand Up @@ -1228,8 +1224,14 @@ transport_emulate_control_cdb(struct se_task *task)

if (ret < 0)
return ret;
task->task_scsi_status = GOOD;
transport_complete_task(task, 1);
/*
* Handle the successful completion here unless a caller
* has explictly requested an asychronous completion.
*/
if (!(cmd->se_cmd_flags & SCF_EMULATE_CDB_ASYNC)) {
task->task_scsi_status = GOOD;
transport_complete_task(task, 1);
}

return PYX_TRANSPORT_SENT_TO_TRANSPORT;
}

0 comments on commit fbdf2da

Please sign in to comment.