Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213227
b: refs/heads/master
c: 3031004
h: refs/heads/master
i:
  213225: ed6b545
  213223: b13553c
v: v3
  • Loading branch information
Tejun Heo committed Oct 11, 2010
1 parent b8bf5d8 commit 187a953
Show file tree
Hide file tree
Showing 2 changed files with 4 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: cdadf0097cdca06c497ffaeb5982e028c6e4ed38
refs/heads/master: 30310045dd20a286cf3800f063f79b468e132fb1
4 changes: 3 additions & 1 deletion trunk/kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,9 @@ static bool keep_working(struct global_cwq *gcwq)
{
atomic_t *nr_running = get_gcwq_nr_running(gcwq->cpu);

return !list_empty(&gcwq->worklist) && atomic_read(nr_running) <= 1;
return !list_empty(&gcwq->worklist) &&
(atomic_read(nr_running) <= 1 ||
gcwq->flags & GCWQ_HIGHPRI_PENDING);
}

/* Do we need a new worker? Called from manager. */
Expand Down

0 comments on commit 187a953

Please sign in to comment.