Repository navigation
Commit b09a201
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 0b1a4d0 commit b09a201
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5384 | 5384 | | |
5385 | 5385 | | |
5386 | 5386 | | |
5387 | | - | |
5388 | | - | |
5389 | | - | |
5390 | 5387 | | |
5391 | 5388 | | |
5392 | 5389 | | |
5393 | 5390 | | |
5394 | 5391 | | |
5395 | 5392 | | |
5396 | 5393 | | |
| 5394 | + | |
| 5395 | + | |
| 5396 | + | |
| 5397 | + | |
| 5398 | + | |
| 5399 | + | |
| 5400 | + | |
| 5401 | + | |
| 5402 | + | |
5397 | 5403 | | |
5398 | 5404 | | |
5399 | 5405 | | |
| |||
5406 | 5412 | | |
5407 | 5413 | | |
5408 | 5414 | | |
| 5415 | + | |
| 5416 | + | |
5409 | 5417 | | |
5410 | 5418 | | |
5411 | 5419 | | |
5412 | | - | |
5413 | 5420 | | |
5414 | 5421 | | |
5415 | 5422 | | |
| |||
0 commit comments