Commit 1dadafa8 authored by Tim Gardner's avatar Tim Gardner Committed by Tejun Heo

workqueue: Make flush_workqueue() available again to non GPL modules

Commit 37b1ef31 ("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 commit ad7b1f84 ("workqueue: Make
schedule_work() available again to non GPL modules") for precedent.
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent badb7f5e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment