linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] workqueue: export apply_workqueue_attrs()
@ 2020-10-18 23:52 NeilBrown
  2020-10-23 11:05 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: NeilBrown @ 2020-10-18 23:52 UTC (permalink / raw)
  To: Herbert Xu, Lai Jiangshan
  Cc: Daniel Jordan, Thomas Gleixner, Sebastian Andrzej Siewior, LKML

[-- Attachment #1: Type: text/plain, Size: 1480 bytes --]


Lustre is a widely used cluster filesystem which is currently
out-of-tree, but work is underway to make it ready for upstream
submission.

Lustre needs apply_workqueue_attrs(), and for this reason that function
was exported in Commit 6106c0f82481 ("staging: lustre: lnet: convert
selftest to use workqueues").

Unfortuantely it was later (through an excess of caution) unexported by
Commit 2c9858ecbeb1 ("workqueue: Make alloc/apply/free_workqueue_attrs()
static"), which also marked the function static.

Subsequently in Commit 513c98d08682 ("workqueue: unconfine
alloc/apply/free_workqueue_attrs()") the "static" marking was removed
when it was realized that it is actually useful to some clients of
"workqueue", but it was not exported at this time.

Lustre has been making do with use of kallsyms_lookup_name() to get
access to this function when it isn't exported, but that loop-hole has
now been removed.

So: time to export the function again.

Signed-off-by: NeilBrown <neilb@suse.de>
---
 kernel/workqueue.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 437935e7a199..ab593b20fb94 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -4068,6 +4068,7 @@ int apply_workqueue_attrs(struct workqueue_struct *wq,
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(apply_workqueue_attrs);
 
 /**
  * wq_update_unbound_numa - update NUMA affinity of a wq for CPU hot[un]plug
-- 
2.28.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 853 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] workqueue: export apply_workqueue_attrs()
  2020-10-18 23:52 [PATCH] workqueue: export apply_workqueue_attrs() NeilBrown
@ 2020-10-23 11:05 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2020-10-23 11:05 UTC (permalink / raw)
  To: NeilBrown
  Cc: Herbert Xu, Lai Jiangshan, Daniel Jordan, Thomas Gleixner,
	Sebastian Andrzej Siewior, LKML, Greg Kroah-Hartman

On Mon, Oct 19, 2020 at 10:52:09AM +1100, NeilBrown wrote:
> 
> Lustre is a widely used cluster filesystem which is currently
> out-of-tree, but work is underway to make it ready for upstream
> submission.
> 
> Lustre needs apply_workqueue_attrs(), and for this reason that function
> was exported in Commit 6106c0f82481 ("staging: lustre: lnet: convert
> selftest to use workqueues").

None of this matters.  We don't export unused symbols, period.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-23 11:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-18 23:52 [PATCH] workqueue: export apply_workqueue_attrs() NeilBrown
2020-10-23 11:05 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).