flush_workqueue(9) 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.

COPYRIGHT