diff options
| author | Tejun Heo <tj@kernel.org> | 2024-01-29 08:11:24 -1000 |
|---|---|---|
| committer | Sasha Levin <sashal@kernel.org> | 2024-03-26 18:19:16 -0400 |
| commit | bad184d26a4f68aa00ad75502f9669950a790f71 (patch) | |
| tree | 0a7c45e82c9af1918d9186b3beac8e5bc24e6ae1 /include/linux | |
| parent | 82e098f5bed1ff167332d26f8551662098747ec4 (diff) | |
workqueue: Factor out pwq_is_empty()
[ Upstream commit afa87ce85379e2d93863fce595afdb5771a84004 ]
"!pwq->nr_active && list_empty(&pwq->inactive_works)" test is repeated
multiple times. Let's factor it out into pwq_is_empty().
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com>
Stable-dep-of: 5797b1c18919 ("workqueue: Implement system-wide nr_active enforcement for unbound workqueues")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
