workqueue: Allocate the unbound pool using local node memory
authorXunlei Pang <pang.xunlei@linaro.org>
Fri, 9 Oct 2015 03:53:12 +0000 (11:53 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 12 Oct 2015 16:17:31 +0000 (12:17 -0400)
commite2273584d3f33f7f2cfe6d7aaade0fa2f1cb3db5
tree0d6a5b90dcf356e4739b34ac8f46cd65a607673d
parent25cb62b76430a91cc6195f902e61c2cb84ade622
workqueue: Allocate the unbound pool using local node memory

Currently, get_unbound_pool() uses kzalloc() to allocate the
worker pool. Actually, we can use the right node to do the
allocation, achieving local memory access.

This patch selects target node first, and uses kzalloc_node()
instead.

Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c