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: Bhaktipriya 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@Karyakshetra
Signed-off-by: Borislav Petkov <bp@suse.de>
This commit is contained in:
Bhaktipriya Shridhar 2016-08-13 22:11:24 +05:30 committed by Borislav Petkov
parent 9bcd919eb8
commit 7bb8b77779
1 changed files with 1 additions and 1 deletions

View File

@ -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