1DRAIN_WORKQUEUE(9) Driver Basics DRAIN_WORKQUEUE(9)
2
3
4
6 drain_workqueue - drain a workqueue
7
9 void drain_workqueue(struct workqueue_struct * wq);
10
12 wq
13 workqueue to drain
14
16 Wait until the workqueue becomes empty. While draining is in progress,
17 only chain queueing is allowed. IOW, only currently pending or running
18 work items on wq can queue further work items on it. wq is flushed
19 repeatedly until it becomes empty. The number of flushing is detemined
20 by the depth of chaining and should be relatively short. Whine if it
21 takes too long.
22
24Kernel Hackers Manual 3.10 June 2019 DRAIN_WORKQUEUE(9)