---
name: "workqueue_congested"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/workqueue_congested"
---

# workqueue\_congested(9)

test whether a workqueue is congested

## NAME

workqueue\_congested - test whether a workqueue is congested

## SYNOPSIS

**bool workqueue\_congested(int** *cpu***, struct workqueue\_struct \*** *wq***);**

## ARGUMENTS

*cpu*

CPU in question

*wq*

target workqueue

## DESCRIPTION

Test whether *wq*'s 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 doesn't mean the workqueue is also contested on other CPUs / NUMA nodes.

## RETURN

**true** if congested, **false** otherwise.

## COPYRIGHT
