]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
workqueue: make sysfs of unbound kworker cpumask more clever
authorMenglong Dong <imagedong@tencent.com>
Sun, 17 Oct 2021 12:04:02 +0000 (20:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:36:06 +0000 (11:36 +0100)
commit015497752e286ab9a653e8a306872e5b240d77ef
treef4b79505656654a2af297f2188955842e085e798
parentfd6979aff272ff28db52b7dae648ecd151d9d553
workqueue: make sysfs of unbound kworker cpumask more clever

[ Upstream commit d25302e46592c97d29f70ccb1be558df31a9a360 ]

Some unfriendly component, such as dpdk, write the same mask to
unbound kworker cpumask again and again. Every time it write to
this interface some work is queue to cpu, even though the mask
is same with the original mask.

So, fix it by return success and do nothing if the cpumask is
equal with the old one.

Signed-off-by: Mengen Sun <mengensun@tencent.com>
Signed-off-by: Menglong Dong <imagedong@tencent.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/workqueue.c