Commit 7bb8b777 authored by Bhaktipriya Shridhar's avatar Bhaktipriya Shridhar Committed by Borislav Petkov

EDAC, wq: Remove deprecated create_singlethread_workqueue()

Replace the deprecated create_singlethread_workqueue() with
alloc_ordered_workqueue() with WQ_MEM_RECLAIM. This is the identity
conversion.

It's not recommended to stall it from memory pressure. Hence,
WQ_MEM_RECLAIM has been set to ensure forward progress under memory
pressure.
Signed-off-by: default avatarBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20160813164124.GA9077@KaryakshetraSigned-off-by: default avatarBorislav Petkov <bp@suse.de>
parent 9bcd919e
...@@ -27,7 +27,7 @@ EXPORT_SYMBOL_GPL(edac_stop_work); ...@@ -27,7 +27,7 @@ EXPORT_SYMBOL_GPL(edac_stop_work);
int edac_workqueue_setup(void) int edac_workqueue_setup(void)
{ {
wq = create_singlethread_workqueue("edac-poller"); wq = alloc_ordered_workqueue("edac-poller", WQ_MEM_RECLAIM);
if (!wq) if (!wq)
return -ENODEV; return -ENODEV;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment