diff options
author | Tejun Heo <tj@kernel.org> | 2013-03-12 22:30:03 +0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-03-12 22:30:03 +0400 |
commit | 493008a8e475771a2126e0ce95a73e35b371d277 (patch) | |
tree | 0e67b51ade42bb623456aa186cec7a5722a8420c /fs/f2fs | |
parent | ac6104cdf87cc162b0a0d78280d1dcb9752e25bb (diff) | |
download | linux-493008a8e475771a2126e0ce95a73e35b371d277.tar.xz |
workqueue: drop WQ_RESCUER and test workqueue->rescuer for NULL instead
WQ_RESCUER is superflous. WQ_MEM_RECLAIM indicates that the user
wants a rescuer and testing wq->rescuer for NULL can answer whether a
given workqueue has a rescuer or not. Drop WQ_RESCUER and test
wq->rescuer directly.
This will help simplifying __alloc_workqueue_key() failure path by
allowing it to use destroy_workqueue() on a partially constructed
workqueue, which in turn will help implementing dynamic management of
pool_workqueues.
While at it, clear wq->rescuer after freeing it in
destroy_workqueue(). This is a precaution as scheduled changes will
make destruction more complex.
This patch doesn't introduce any functional changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Diffstat (limited to 'fs/f2fs')
0 files changed, 0 insertions, 0 deletions