Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264663
b: refs/heads/master
c: c252f00
h: refs/heads/master
i:
  264661: d5c149d
  264659: f80ecce
  264655: 79c62d7
v: v3
  • Loading branch information
Nicholas Bellinger committed Oct 24, 2011
1 parent a19e8cb commit c9a12c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77039d1eafbbc192df71ee84b157b8973766737d
refs/heads/master: c252f003470a99d319db4ebd12f4a9e4710a65db
9 changes: 9 additions & 0 deletions trunk/drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -4919,6 +4919,15 @@ EXPORT_SYMBOL(transport_check_aborted_status);

void transport_send_task_abort(struct se_cmd *cmd)
{
unsigned long flags;

spin_lock_irqsave(&cmd->t_state_lock, flags);
if (cmd->se_cmd_flags & SCF_SENT_CHECK_CONDITION) {
spin_unlock_irqrestore(&cmd->t_state_lock, flags);
return;
}
spin_unlock_irqrestore(&cmd->t_state_lock, flags);

/*
* If there are still expected incoming fabric WRITEs, we wait
* until until they have completed before sending a TASK_ABORTED
Expand Down

0 comments on commit c9a12c7

Please sign in to comment.