Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

IB/sa : Remove deprecated create_singlethread_workqueue

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "ib_nl" queues work item &ib_nl_timed_work. It has been
identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory
pressure.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>

authored by

Bhaktipriya Shridhar and committed by
Doug Ledford
4534d859 13eab21f

+1 -1
+1 -1
drivers/infiniband/core/sa_query.c
··· 2015 2015 goto err2; 2016 2016 } 2017 2017 2018 - ib_nl_wq = create_singlethread_workqueue("ib_nl_sa_wq"); 2018 + ib_nl_wq = alloc_ordered_workqueue("ib_nl_sa_wq", WQ_MEM_RECLAIM); 2019 2019 if (!ib_nl_wq) { 2020 2020 ret = -ENOMEM; 2021 2021 goto err3;