Skip to content
  • NeilBrown's avatar
    staging: lustre: lnet: convert selftest to use workqueues · 6106c0f8
    NeilBrown authored
    
    
    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: default avatarNeilBrown <neilb@suse.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    6106c0f8