1WORKQUEUE_CONGESTED(9) Driver Basics WORKQUEUE_CONGESTED(9)
2
3
4
6 workqueue_congested - test whether a workqueue is congested
7
9 bool workqueue_congested(int cpu, struct workqueue_struct * wq);
10
12 cpu
13 CPU in question
14
15 wq
16 target workqueue
17
19 Test whether wq's cpu workqueue for cpu is congested. There is no
20 synchronization around this function and the test result is unreliable
21 and only useful as advisory hints or for debugging.
22
23 If cpu is WORK_CPU_UNBOUND, the test is performed on the local CPU.
24 Note that both per-cpu and unbound workqueues may be associated with
25 multiple pool_workqueues which have separate congested states. A
26 workqueue being congested on one CPU doesn't mean the workqueue is also
27 contested on other CPUs / NUMA nodes.
28
30 true if congested, false otherwise.
31
33Kernel Hackers Manual 3.10 June 2019 WORKQUEUE_CONGESTED(9)