workqueue: Make flush_workqueue() available again to non GPL modules
Subsystems (2)
PATCH 1/1 workqueue: Make flush_workqueue() available again to non GPL modules
From: Tim Gardner <[email protected]>
Commit 37b1ef31a568fc02e53587620226e5f3c66454c8 ("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 ad7b1f841f8a54c6d61ff181451f55b68175e15a ("workqueue: Make schedule_work() available again to non GPL modules") for precedent.
--- kernel/workqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/workqueue.c +1 -1
@@ -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
Signature · 1 line
1.9.1
Quoted 9 lines · On Tue, Aug 04, 2015 at 11:26:04AM -0600, [email protected] wrote:
From: Tim Gardner <[email protected]>
Commit
37b1ef31a568fc02e53587620226e5f3c66454c8("workqueue: moveflush_scheduled_work()toworkqueue.h") moved the exported non GPLflush_scheduled_work()from a function to an inline wrapper. Unfortunately, it directly callsflush_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.
Quoted 5 lines
See commit
ad7b1f841f8a54c6d61ff181451f55b68175e15a("workqueue: Makeschedule_work()available again to non GPL modules") for precedent.Cc Tejun Heo <[email protected]>Signed-off-by Tim Gardner <[email protected]>
Applied to wq/for-4.3.
Thanks.
Signature · 1 line
tejun
Quoted 15 lines · On Dienstag, 4. August 2015 14:05:20 Tejun Heo wrote:
Quoted 14 lines · On Tue, Aug 04, 2015 at 11:26:04AM -0600, [email protected] wrote:
From: Tim Gardner <[email protected]>
Commit
37b1ef31a568fc02e53587620226e5f3c66454c8("workqueue: moveflush_scheduled_work()toworkqueue.h") moved the exported non GPLflush_scheduled_work()from a function to an inline wrapper. Unfortunately, it directly callsflush_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
ad7b1f841f8a54c6d61ff181451f55b68175e15a("workqueue: Makeschedule_work()available again to non GPL modules") for precedent.
Quoted 6 lines
Quoted 2 lines
Cc Tejun Heo <[email protected]>Signed-off-by Tim Gardner <[email protected]>Applied to wq/for-4.3.
Thanks.
Tejun, mind CCing stable in this regard?
As things stand right now, it's activily deferring 4.2 rollout for (evil, sure) nvidia users like me.
Thanks,
Pete
Tejun Heo
maintainerHello, Greg.
I forgot to add cc tag for stable for the following patch. It's now in mainline as commit 1dadafa86a779884f14a6e7a3ddde1a57b0a0a65.
Thanks.
Quoted 34 lines · On Tue, Aug 04, 2015 at 11:26:04AM -0600, [email protected] wrote:
From: Tim Gardner <[email protected]>
Commit
37b1ef31a568fc02e53587620226e5f3c66454c8("workqueue: moveflush_scheduled_work()toworkqueue.h") moved the exported non GPLflush_scheduled_work()from a function to an inline wrapper. Unfortunately, it directly callsflush_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
ad7b1f841f8a54c6d61ff181451f55b68175e15a("workqueue: Makeschedule_work()available again to non GPL modules") for precedent.Cc Tejun Heo <[email protected]>Signed-off-by Tim Gardner <[email protected]>--- kernel/workqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/workqueue.c +1
-1@@ -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 Signature · 1 line
1.9.1
Signature · 1 line
tejun