Re: [PATCH 3/6] workqueue: use @pool instead of @gcwq or @cpu where applicable

2012-07-12 Thread Tejun Heo
Hello, Tony. On Tue, Jul 10, 2012 at 04:30:36PM -0700, Tony Luck wrote: > On Mon, Jul 9, 2012 at 11:41 AM, Tejun Heo wrote: > > @@ -1234,7 +1235,7 @@ static void worker_enter_idle(struct worker *worker) > > */ > > WARN_ON_ONCE(gcwq->trustee_state == TRUSTEE_DONE && > >

Re: [PATCH 3/6] workqueue: use @pool instead of @gcwq or @cpu where applicable

2012-07-10 Thread Tony Luck
On Mon, Jul 9, 2012 at 11:41 AM, Tejun Heo wrote: > @@ -1234,7 +1235,7 @@ static void worker_enter_idle(struct worker *worker) > */ > WARN_ON_ONCE(gcwq->trustee_state == TRUSTEE_DONE && > pool->nr_workers == pool->nr_idle && > -atomic_read(

[PATCH 3/6] workqueue: use @pool instead of @gcwq or @cpu where applicable

2012-07-09 Thread Tejun Heo
Modify all functions which deal with per-pool properties to pass around @pool instead of @gcwq or @cpu. The changes in this patch are mechanical and don't caues any functional difference. This is to prepare for multiple pools per gcwq. Signed-off-by: Tejun Heo --- kernel/workqueue.c | 218 +++