diff options
author | NeilBrown <neilb@suse.com> | 2018-01-11 15:06:40 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-15 15:44:08 +0100 |
commit | 6106c0f82481e686b337ee0c403821fb5c3c17ef (patch) | |
tree | 668fc5932cfc5f5886e6b1c41c81e588f7c37a3a /kernel/workqueue.c | |
parent | a66a4e8e01f3b607a9aa5b5ed9ca588b4c3a962e (diff) | |
download | linux-6106c0f82481e686b337ee0c403821fb5c3c17ef.tar.gz linux-6106c0f82481e686b337ee0c403821fb5c3c17ef.tar.bz2 linux-6106c0f82481e686b337ee0c403821fb5c3c17ef.zip |
staging: lustre: lnet: convert selftest to use workqueues
Instead of the cfs workitem library, use workqueues.
As lnet wants to provide a cpu mask of allowed cpus, it
needs to be a WQ_UNBOUND work queue so that tasks can
run on cpus other than where they were submitted.
This patch also exported apply_workqueue_attrs() which is
a documented part of the workqueue API, that isn't currently
exported. lustre needs it to allow workqueue thread to be limited
to a subset of CPUs.
Acked-by: Tejun Heo <tj@kernel.org> (for export of apply_workqueue_attrs)
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r-- | kernel/workqueue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 43d18cb46308..d1d460bb9b02 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -3806,6 +3806,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 |