Skip to content
Commit 928003bd authored by Marco Elver's avatar Marco Elver Committed by Greg Kroah-Hartman
Browse files

kfence: unconditionally use unbound work queue

[ Upstream commit ff06e45d ]

Unconditionally use unbound work queue, and not just if wq_power_efficient
is true.  Because if the system is idle, KFENCE may wait, and by being run
on the unbound work queue, we permit the scheduler to make better
scheduling decisions and not require pinning KFENCE to the same CPU upon
waking up.

Link: https://lkml.kernel.org/r/20210521111630.472579-1-elver@google.com
Fixes: 36f0b35d

 ("kfence: use power-efficient work queue to run delayed work")
Signed-off-by: default avatarMarco Elver <elver@google.com>
Reported-by: default avatarHillf Danton <hdanton@sina.com>
Reviewed-by: default avatarAlexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 11ebc09e
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