Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327172
b: refs/heads/master
c: dbf2576
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed Aug 20, 2012
1 parent 149eeb4 commit e4ceb56
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 044c782ce3a901fbd17cbe701c592f582381174d
refs/heads/master: dbf2576e37da0fcc7aacbfbb9fd5d3de7888a3c1
13 changes: 7 additions & 6 deletions trunk/kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1225,14 +1225,15 @@ static void __queue_work(unsigned int cpu, struct workqueue_struct *wq,
cpu = raw_smp_processor_id();

/*
* It's multi cpu. If @wq is non-reentrant and @work
* was previously on a different cpu, it might still
* be running there, in which case the work needs to
* be queued on that cpu to guarantee non-reentrance.
* It's multi cpu. If @work was previously on a different
* cpu, it might still be running there, in which case the
* work needs to be queued on that cpu to guarantee
* non-reentrancy.
*/
gcwq = get_gcwq(cpu);
if (wq->flags & WQ_NON_REENTRANT &&
(last_gcwq = get_work_gcwq(work)) && last_gcwq != gcwq) {
last_gcwq = get_work_gcwq(work);

if (last_gcwq && last_gcwq != gcwq) {
struct worker *worker;

spin_lock(&last_gcwq->lock);
Expand Down

0 comments on commit e4ceb56

Please sign in to comment.