Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252451
b: refs/heads/master
c: af57c3a
h: refs/heads/master
i:
  252449: 18c497f
  252447: 102abfd
v: v3
  • Loading branch information
Nicholas Bellinger authored and James Bottomley committed May 24, 2011
1 parent e9ac4f9 commit ec6ada6
Show file tree
Hide file tree
Showing 2 changed files with 8 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: f436677262a5b524ac87675014c6d4e8ee153029
refs/heads/master: af57c3ac9947990da2608561b71f4799eb7795c6
7 changes: 7 additions & 0 deletions trunk/drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,7 @@ transport_get_task_from_execute_queue(struct se_device *dev)
break;

list_del(&task->t_execute_list);
atomic_set(&task->task_execute_queue, 0);
atomic_dec(&dev->execute_tasks);

return task;
Expand All @@ -1209,8 +1210,14 @@ void transport_remove_task_from_execute_queue(
{
unsigned long flags;

if (atomic_read(&task->task_execute_queue) == 0) {
dump_stack();
return;
}

spin_lock_irqsave(&dev->execute_task_lock, flags);
list_del(&task->t_execute_list);
atomic_set(&task->task_execute_queue, 0);
atomic_dec(&dev->execute_tasks);
spin_unlock_irqrestore(&dev->execute_task_lock, flags);
}
Expand Down

0 comments on commit ec6ada6

Please sign in to comment.