Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304774
b: refs/heads/master
c: f5b2552
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Tejun Heo committed Apr 16, 2012
1 parent 582ac5e commit 995fcc2
Show file tree
Hide file tree
Showing 2 changed files with 5 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: d3283fb45c06dfd7b1a36da8e6ff39d313f0600c
refs/heads/master: f5b2552b4ebbeadcadde1532d7bbd3f850719046
5 changes: 4 additions & 1 deletion trunk/kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,10 @@ static void __queue_work(unsigned int cpu, struct workqueue_struct *wq,
cwq = get_cwq(gcwq->cpu, wq);
trace_workqueue_queue_work(cpu, cwq, work);

BUG_ON(!list_empty(&work->entry));
if (WARN_ON(!list_empty(&work->entry))) {
spin_unlock_irqrestore(&gcwq->lock, flags);
return;
}

cwq->nr_in_flight[cwq->work_color]++;
work_flags = work_color_to_flags(cwq->work_color);
Expand Down

0 comments on commit 995fcc2

Please sign in to comment.