Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365551
b: refs/heads/master
c: e50aba9
h: refs/heads/master
i:
  365549: 4d72f17
  365547: 2f07920
  365543: f714cc3
  365535: 2dea5ca
v: v3
  • Loading branch information
Tejun Heo committed Apr 1, 2013
1 parent d58b731 commit f5c58de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: f147f29eb7c4959e5f8be604ce2d23979c86378c
refs/heads/master: e50aba9aea63b7617887b4d9694184f478731c82
6 changes: 4 additions & 2 deletions trunk/kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -3626,12 +3626,14 @@ static void pwq_adjust_max_active(struct pool_workqueue *pwq)
spin_unlock_irq(&pwq->pool->lock);
}

/* initialize newly zalloced @pwq which is associated with @wq and @pool */
/* initialize newly alloced @pwq which is associated with @wq and @pool */
static void init_pwq(struct pool_workqueue *pwq, struct workqueue_struct *wq,
struct worker_pool *pool)
{
BUG_ON((unsigned long)pwq & WORK_STRUCT_FLAG_MASK);

memset(pwq, 0, sizeof(*pwq));

pwq->pool = pool;
pwq->wq = wq;
pwq->flush_color = -1;
Expand Down Expand Up @@ -3677,7 +3679,7 @@ static struct pool_workqueue *alloc_unbound_pwq(struct workqueue_struct *wq,
if (!pool)
return NULL;

pwq = kmem_cache_zalloc(pwq_cache, GFP_KERNEL);
pwq = kmem_cache_alloc_node(pwq_cache, GFP_KERNEL, pool->node);
if (!pwq) {
put_unbound_pool(pool);
return NULL;
Expand Down

0 comments on commit f5c58de

Please sign in to comment.