Re: [PATCH 06/10] workqueue: convert worker_idr to worker_ida

2014-05-06 Thread Tejun Heo
Hello, On Tue, May 06, 2014 at 12:35:24PM -0400, Tejun Heo wrote: > On Wed, May 07, 2014 at 12:33:34AM +0800, Lai Jiangshan wrote: > > On Mon, May 5, 2014 at 10:59 PM, Tejun Heo wrote: > > > On Sun, Apr 27, 2014 at 12:09:01PM +0800, Lai Jiangshan wrote: > > >> @@ -2224,6 +2220,9 @@ woke_up: > > >

Re: [PATCH 06/10] workqueue: convert worker_idr to worker_ida

2014-05-06 Thread Tejun Heo
On Wed, May 07, 2014 at 12:33:34AM +0800, Lai Jiangshan wrote: > On Mon, May 5, 2014 at 10:59 PM, Tejun Heo wrote: > > On Sun, Apr 27, 2014 at 12:09:01PM +0800, Lai Jiangshan wrote: > >> @@ -2224,6 +2220,9 @@ woke_up: > >> spin_unlock_irq(&pool->lock); > >> WARN_ON_ONCE

Re: [PATCH 06/10] workqueue: convert worker_idr to worker_ida

2014-05-06 Thread Lai Jiangshan
On Mon, May 5, 2014 at 10:59 PM, Tejun Heo wrote: > On Sun, Apr 27, 2014 at 12:09:01PM +0800, Lai Jiangshan wrote: >> @@ -2224,6 +2220,9 @@ woke_up: >> spin_unlock_irq(&pool->lock); >> WARN_ON_ONCE(!list_empty(&worker->entry)); >> worker->task->flags &= ~P

Re: [PATCH 06/10] workqueue: convert worker_idr to worker_ida

2014-05-05 Thread Tejun Heo
On Sun, Apr 27, 2014 at 12:09:01PM +0800, Lai Jiangshan wrote: > @@ -2224,6 +2220,9 @@ woke_up: > spin_unlock_irq(&pool->lock); > WARN_ON_ONCE(!list_empty(&worker->entry)); > worker->task->flags &= ~PF_WQ_WORKER; > + > + set_task_comm(worker->ta

[PATCH 06/10] workqueue: convert worker_idr to worker_ida

2014-04-26 Thread Lai Jiangshan
We don't need to travell workers via worker_idr, worker_idr is used for allocating/freeing ID only, so we convert it to worker_ida. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 23 +++ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/kernel/workqueu