Skip to content
Commit e2273584 authored by Xunlei Pang's avatar Xunlei Pang Committed by Tejun Heo
Browse files

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: default avatarXunlei Pang <pang.xunlei@linaro.org>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 25cb62b7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment