Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 855cda68 authored by Bhaktipriya Shridhar's avatar Bhaktipriya Shridhar Committed by Doug Ledford
Browse files

IB/ipoib: Remove deprecated create_singlethread_workqueue



alloc_ordered_workqueue() replaces deprecated
create_singlethread_workqueue().

The workqueue "ipoib_workqueue" that is used for all flush operations
for the device.

WQ_MEM_RECLAIM has been set since the flush operations may need to
complete in order for other network functions to continue, and
the memory reclaim operation might need the network functioning in
order to make progress.

Signed-off-by: default avatarBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 9e5df312
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2196,7 +2196,8 @@ static int __init ipoib_init_module(void)
	 * its private workqueue, and we only queue up flush events
	 * on our global flush workqueue.  This avoids the deadlocks.
	 */
	ipoib_workqueue = create_singlethread_workqueue("ipoib_flush");
	ipoib_workqueue = alloc_ordered_workqueue("ipoib_flush",
						  WQ_MEM_RECLAIM);
	if (!ipoib_workqueue) {
		ret = -ENOMEM;
		goto err_fs;