]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:32:46 +0000 (07:32 +0100)
commit96c5ca38e9a7b261ff5e70cba15747ac8df4e8af
treeb956f62c45b269fcb1246c4b8f089cdd54688dd7
parent21aaf5ce829178a20de93e26ef5528ff1472ddc5
workqueue: make sysfs of unbound kworker cpumask more clever

BugLink: https://bugs.launchpad.net/bugs/1951822
[ 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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
kernel/workqueue.c