summaryrefslogtreecommitdiff
path: root/kernel/taskstats.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-03-12 18:30:03 (GMT)
committerTejun Heo <tj@kernel.org>2013-03-12 18:30:03 (GMT)
commit493008a8e475771a2126e0ce95a73e35b371d277 (patch)
tree0e67b51ade42bb623456aa186cec7a5722a8420c /kernel/taskstats.c
parentac6104cdf87cc162b0a0d78280d1dcb9752e25bb (diff)
downloadlinux-fsl-qoriq-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 'kernel/taskstats.c')
0 files changed, 0 insertions, 0 deletions