FLUSH_WORKQUEUE(9) Driver Basics FLUSH_WORKQUEUE(9)NAMEflush_workqueue - ensure that any scheduled work has run to completion.
SYNOPSIS
void flush_workqueue(struct workqueue_struct * wq);
ARGUMENTS
wq
workqueue to flush
DESCRIPTION
This function sleeps until all work items which were queued on entry
have finished execution, but it is not livelocked by new incoming ones.
COPYRIGHTKernel Hackers Manual 3.11 November 2013 FLUSH_WORKQUEUE(9)