workqueue: correct handling of the pool spin_lock
authorJoonsoo Kim <js1304@gmail.com>
Tue, 30 Apr 2013 15:07:00 +0000 (00:07 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 14 May 2013 18:48:15 +0000 (11:48 -0700)
commit8f174b1175a10903ade40f36eb6c896412877ca0
treeb6f1c9c7317ecc1092f582aca0160fdfb77c624e
parentd3251859168b0b12841e1b90d6d768ab478dc23d
workqueue: correct handling of the pool spin_lock

When we fail to mutex_trylock(), we release the pool spin_lock and do
mutex_lock(). After that, we should regrab the pool spin_lock, but,
regrabbing is missed in current code. So correct it.

Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c