staging: lustre: lnet: convert selftest to use workqueues
authorNeilBrown <neilb@suse.com>
Thu, 11 Jan 2018 04:06:40 +0000 (15:06 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jan 2018 14:44:08 +0000 (15:44 +0100)
commit6106c0f82481e686b337ee0c403821fb5c3c17ef
tree668fc5932cfc5f5886e6b1c41c81e588f7c37a3a
parenta66a4e8e01f3b607a9aa5b5ed9ca588b4c3a962e
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>
drivers/staging/lustre/lnet/selftest/framework.c
drivers/staging/lustre/lnet/selftest/module.c
drivers/staging/lustre/lnet/selftest/rpc.c
drivers/staging/lustre/lnet/selftest/selftest.h
kernel/workqueue.c