]> git.karo-electronics.de Git - linux-beck.git/commitdiff
EDAC, wq: Remove deprecated create_singlethread_workqueue()
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Sat, 13 Aug 2016 16:41:24 +0000 (22:11 +0530)
committerBorislav Petkov <bp@suse.de>
Mon, 15 Aug 2016 05:21:29 +0000 (07:21 +0200)
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>
drivers/edac/wq.c

index 1b8c07e44fd8fd71558780347205e2cca4995ff4..2a9a11ae246156c7ccef414e5a50ea2b33867325 100644 (file)
@@ -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