workqueue: Make flush_workqueue() available again to non GPL modules
Commit37b1ef31a5
("workqueue: move flush_scheduled_work() to workqueue.h") moved the exported non GPL flush_scheduled_work() from a function to an inline wrapper. Unfortunately, it directly calls flush_workqueue() which is a GPL function. This has the effect of changing the licensing requirement for this function and makes it unavailable to non GPL modules. See commitad7b1f841f
("workqueue: Make schedule_work() available again to non GPL modules") for precedent. Signed-off-by: Tim Gardner <tim.gardner@canonical.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
badb7f5e8b
commit
1dadafa86a
|
@ -2614,7 +2614,7 @@ void flush_workqueue(struct workqueue_struct *wq)
|
|||
out_unlock:
|
||||
mutex_unlock(&wq->mutex);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(flush_workqueue);
|
||||
EXPORT_SYMBOL(flush_workqueue);
|
||||
|
||||
/**
|
||||
* drain_workqueue - drain a workqueue
|
||||
|
|
Loading…
Reference in a new issue