forked from luck/tmp_suning_uos_patched
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:
parent
9bcd919eb8
commit
7bb8b77779
|
@ -27,7 +27,7 @@ EXPORT_SYMBOL_GPL(edac_stop_work);
|
|||
|
||||
int edac_workqueue_setup(void)
|
||||
{
|
||||
wq = create_singlethread_workqueue("edac-poller");
|
||||
wq = alloc_ordered_workqueue("edac-poller", WQ_MEM_RECLAIM);
|
||||
if (!wq)
|
||||
return -ENODEV;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user