Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365476
b: refs/heads/master
c: b310410
h: refs/heads/master
v: v3
  • Loading branch information
Lai Jiangshan authored and Tejun Heo committed Mar 4, 2013
1 parent a4f9151 commit 106b070
Show file tree
Hide file tree
Showing 3 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: f36dc67b27a689eeb3631b11ebef17bbff257fbb
refs/heads/master: b31041042a8cdece67f925e4bae55b5f5fd754ca
3 changes: 2 additions & 1 deletion trunk/kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -2357,8 +2357,8 @@ static int rescuer_thread(void *__rescuer)
mayday_clear_cpu(cpu, wq->mayday_mask);

/* migrate to the target cpu if possible */
rescuer->pool = pool;
worker_maybe_bind_and_lock(pool);
rescuer->pool = pool;

/*
* Slurp in all works issued via this workqueue and
Expand All @@ -2379,6 +2379,7 @@ static int rescuer_thread(void *__rescuer)
if (keep_working(pool))
wake_up_worker(pool);

rescuer->pool = NULL;
spin_unlock_irq(&pool->lock);
}

Expand Down
1 change: 1 addition & 0 deletions trunk/kernel/workqueue_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ struct worker {
struct list_head scheduled; /* L: scheduled works */
struct task_struct *task; /* I: worker task */
struct worker_pool *pool; /* I: the associated pool */
/* L: for rescuers */
/* 64 bytes boundary on 64bit, 32 on 32bit */
unsigned long last_active; /* L: last active timestamp */
unsigned int flags; /* X: flags */
Expand Down

0 comments on commit 106b070

Please sign in to comment.