summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2018-01-11 05:06:40 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-15 15:44:08 +0100
commit6106c0f82481e686b337ee0c403821fb5c3c17ef (patch)
tree668fc5932cfc5f5886e6b1c41c81e588f7c37a3a /kernel/workqueue.c
parentstaging: pi433: Cleanup codestyle, indent statements after case labels (diff)
downloadlinux-6106c0f82481e686b337ee0c403821fb5c3c17ef.tar.xz
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.c1
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