]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: add missing POOL_FREEZING
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 19 Mar 2013 19:28:01 +0000 (03:28 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 20 Mar 2013 17:19:09 +0000 (10:19 -0700)
commitb7dd7a042069b782f37fbacaa4e1b8e6e794e48a
treea6e57caeada640e5b11100400e5acbec5f28425d
parentae8dc308a72b2828ac6ae8a9aa8ef410477a03e4
workqueue: add missing POOL_FREEZING

get_unbound_pool() forgot to set POOL_FREEZING if workqueue_freezing
is set and a new pool could go out of sync with the global freezing
state.

Fix it by adding POOL_FREEZING if workqueue_freezing.  wq_mutex is
already held so no further locking is necessary.  This also removes
the unused static variable warning when !CONFIG_FREEZER.

tj: Updated commit message.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c