Re: [PATCH V2] workqueue: fix double unlock bug

2014-04-14 Thread Lai Jiangshan
On Mon, Apr 14, 2014 at 6:41 PM, Daeseok Youn wrote: > > mutex_unlock() and put_pwq_unlocked() do not need to be called > when alloc_unbound_pwq() is failed. > > And remove "if" condition for whether "pwq" is same as "wq->dfl_pwq" > when wq_calc_node_cpumask() returns false and just use "goto use_

[PATCH V2] workqueue: fix double unlock bug

2014-04-14 Thread Daeseok Youn
mutex_unlock() and put_pwq_unlocked() do not need to be called when alloc_unbound_pwq() is failed. And remove "if" condition for whether "pwq" is same as "wq->dfl_pwq" when wq_calc_node_cpumask() returns false and just use "goto use_dfl_pwq" Signed-off-by: Daeseok Youn --- V2: replace "if condi