Name

flush_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.