Commit 4c63803
committed
workqueue: Replace pwq_activate_inactive_work() with [__]pwq_activate_work()
To prepare for unbound nr_active handling improvements, move work activation
part of pwq_activate_inactive_work() into __pwq_activate_work() and add
pwq_activate_work() which tests WORK_STRUCT_INACTIVE and updates nr_active.
pwq_activate_first_inactive() and try_to_grab_pending() are updated to use
pwq_activate_work(). The latter conversion is functionally identical. For
the former, this conversion adds an unnecessary WORK_STRUCT_INACTIVE
testing. This is temporary and will be removed by the next patch.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com>1 parent afa87ce commit 4c63803
1 file changed
Lines changed: 25 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1465 | 1465 | | |
1466 | 1466 | | |
1467 | 1467 | | |
1468 | | - | |
| 1468 | + | |
| 1469 | + | |
1469 | 1470 | | |
1470 | | - | |
1471 | | - | |
1472 | 1471 | | |
1473 | 1472 | | |
1474 | 1473 | | |
1475 | 1474 | | |
1476 | 1475 | | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
1477 | 1495 | | |
| 1496 | + | |
| 1497 | + | |
1478 | 1498 | | |
1479 | 1499 | | |
1480 | 1500 | | |
1481 | 1501 | | |
1482 | 1502 | | |
1483 | 1503 | | |
1484 | 1504 | | |
1485 | | - | |
| 1505 | + | |
1486 | 1506 | | |
1487 | 1507 | | |
1488 | 1508 | | |
| |||
1620 | 1640 | | |
1621 | 1641 | | |
1622 | 1642 | | |
1623 | | - | |
1624 | | - | |
| 1643 | + | |
1625 | 1644 | | |
1626 | 1645 | | |
1627 | 1646 | | |
| |||
0 commit comments