Skip to contentSkip to conversation

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

PATCH Applied [email protected] 3 participants 4 messages Aug 4, 2015 – Sep 3, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 4c4f061..a413acb 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 9 lines · On Tue, Aug 04, 2015 at 11:26:04AM -0600, [email protected] wrote:

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.

Quoted 5 lines

See commit ad7b1f841f8a54c6d61ff181451f55b68175e15a ("workqueue: Make schedule_work() available again to non GPL modules") for precedent.

Applied to wq/for-4.3.

Thanks.

Signature · 1 line
tejun
#2 lore raw
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: 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.

Quoted 6 lines
Quoted 2 lines

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

maintainer
#3 lore raw
In reply to [email protected]

Hello, 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: 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
index 4c4f061..a413acb 100644
@@ -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