1. NAME

workqueue_congested - test whether a workqueue is congested

2. SYNOPSIS

bool workqueue_congested(int  cpu , struct workqueue_struct *  wq );

3. ARGUMENTS

cpu
    CPU in question

wq
    target workqueue

4. DESCRIPTION

Test whether wqAqs cpu workqueue for cpu is congested. There is no synchronization around this function and the test result is unreliable and only useful as advisory hints or for debugging.

If cpu is WORK_CPU_UNBOUND, the test is performed on the local CPU. Note that both per-cpu and unbound workqueues may be associated with multiple pool_workqueues which have separate congested states. A workqueue being congested on one CPU doesnAqt mean the workqueue is also contested on other CPUs / NUMA nodes.

5. RETURNS

true if congested, false otherwise.

6. COPYRIGHT