Commit 7ccc215
workqueue: Clean code in alloc_and_link_pwqs()
wq->flags would not change, so it's not necessary to check if WQ_BH
is set in loop for_each_possible_cpu(), move define and set of pools
out of loop to simpliy the code.
Signed-off-by: Wenchao Hao <haowenchao22@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent 8a92980 commit 7ccc215
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5461 | 5461 | | |
5462 | 5462 | | |
5463 | 5463 | | |
| 5464 | + | |
| 5465 | + | |
| 5466 | + | |
| 5467 | + | |
| 5468 | + | |
| 5469 | + | |
| 5470 | + | |
5464 | 5471 | | |
5465 | 5472 | | |
5466 | | - | |
5467 | 5473 | | |
5468 | 5474 | | |
5469 | | - | |
5470 | | - | |
5471 | | - | |
5472 | | - | |
5473 | | - | |
5474 | 5475 | | |
5475 | 5476 | | |
5476 | 5477 | | |
| |||
0 commit comments