workqueue: fix locking in retry path of maybe_create_worker()
authorTejun Heo <tj@kernel.org>
Wed, 14 Jul 2010 09:31:20 +0000 (11:31 +0200)
committerTejun Heo <tj@kernel.org>
Wed, 14 Jul 2010 09:31:20 +0000 (11:31 +0200)
commit9f9c23644b07e7a51f6f39064e61c150be712932
tree831849ae8bfd602b3333e8ea8e3beb2cf0dee348
parent083b804c4d3e1e3d0eace56bdbc0f674946d2847
workqueue: fix locking in retry path of maybe_create_worker()

maybe_create_worker() mismanaged locking when worker creation fails
and it has to retry.  Fix locking and simplify lock manipulation.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Yong Zhang <yong.zhang@windriver.com>
kernel/workqueue.c