Re: [PATCH] workqueue: show the pool ID of the default pwq's pool in the pool_ids file

2014-09-23 Thread Lai Jiangshan
On 09/23/2014 10:38 PM, Tejun Heo wrote: > On Mon, Sep 22, 2014 at 04:04:37PM +0800, Lai Jiangshan wrote: >> It seems incomplete if the pool_ids file doesn't include the default >> pwq's pool. Add it and the result: >> >> # cat pool_ids >> 0:9 1:10 >> default:8 > > Hmmm? default pwq is used

Re: [PATCH] workqueue: show the pool ID of the default pwq's pool in the pool_ids file

2014-09-23 Thread Tejun Heo
On Mon, Sep 22, 2014 at 04:04:37PM +0800, Lai Jiangshan wrote: > It seems incomplete if the pool_ids file doesn't include the default > pwq's pool. Add it and the result: > > # cat pool_ids > 0:9 1:10 > default:8 Hmmm? default pwq is used only as the fallback if pool switching fails and the

Re: [PATCH] workqueue: show the pool ID of the default pwq's pool in the pool_ids file

2014-09-23 Thread Tejun Heo
On Mon, Sep 22, 2014 at 04:04:37PM +0800, Lai Jiangshan wrote: It seems incomplete if the pool_ids file doesn't include the default pwq's pool. Add it and the result: # cat pool_ids 0:9 1:10 default:8 Hmmm? default pwq is used only as the fallback if pool switching fails and the failed

Re: [PATCH] workqueue: show the pool ID of the default pwq's pool in the pool_ids file

2014-09-23 Thread Lai Jiangshan
On 09/23/2014 10:38 PM, Tejun Heo wrote: On Mon, Sep 22, 2014 at 04:04:37PM +0800, Lai Jiangshan wrote: It seems incomplete if the pool_ids file doesn't include the default pwq's pool. Add it and the result: # cat pool_ids 0:9 1:10 default:8 Hmmm? default pwq is used only as the

[PATCH] workqueue: show the pool ID of the default pwq's pool in the pool_ids file

2014-09-22 Thread Lai Jiangshan
It seems incomplete if the pool_ids file doesn't include the default pwq's pool. Add it and the result: # cat pool_ids 0:9 1:10 default:8 rcu_read_lock_sched() is also changed to mutex_lock(>mutex) for accessing the default pwq. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c |6

[PATCH] workqueue: show the pool ID of the default pwq's pool in the pool_ids file

2014-09-22 Thread Lai Jiangshan
It seems incomplete if the pool_ids file doesn't include the default pwq's pool. Add it and the result: # cat pool_ids 0:9 1:10 default:8 rcu_read_lock_sched() is also changed to mutex_lock(wq-mutex) for accessing the default pwq. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com ---