Commit 5736f1d
workqueue: make sysfs of unbound kworker cpumask more clever
[ Upstream commit d25302e ]
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>1 parent ab5c46f commit 5736f1d
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5326 | 5326 | | |
5327 | 5327 | | |
5328 | 5328 | | |
5329 | | - | |
5330 | | - | |
5331 | | - | |
5332 | 5329 | | |
5333 | 5330 | | |
5334 | 5331 | | |
5335 | 5332 | | |
5336 | 5333 | | |
5337 | 5334 | | |
5338 | 5335 | | |
| 5336 | + | |
| 5337 | + | |
| 5338 | + | |
| 5339 | + | |
| 5340 | + | |
| 5341 | + | |
| 5342 | + | |
| 5343 | + | |
| 5344 | + | |
5339 | 5345 | | |
5340 | 5346 | | |
5341 | 5347 | | |
| |||
5348 | 5354 | | |
5349 | 5355 | | |
5350 | 5356 | | |
| 5357 | + | |
| 5358 | + | |
5351 | 5359 | | |
5352 | 5360 | | |
5353 | 5361 | | |
5354 | | - | |
5355 | 5362 | | |
5356 | 5363 | | |
5357 | 5364 | | |
| |||
0 commit comments