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

Commit 73b97695 authored by Bhaktipriya Shridhar's avatar Bhaktipriya Shridhar Committed by Doug Ledford
Browse files

i40iw_main: 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 "virtchnl_wq" queues work items i40iw_cqp_generic_worker
and i40iw_cqp_manage_hmc_fcn_worker. It has been identity converted.

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

Signed-off-by: default avatarBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 401f047e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1613,7 +1613,7 @@ static int i40iw_open(struct i40e_info *ldev, struct i40e_client *client)
		status = i40iw_hmc_init_pble(&iwdev->sc_dev, iwdev->pble_rsrc);
		status = i40iw_hmc_init_pble(&iwdev->sc_dev, iwdev->pble_rsrc);
		if (status)
		if (status)
			break;
			break;
		iwdev->virtchnl_wq = create_singlethread_workqueue("iwvch");
		iwdev->virtchnl_wq = alloc_ordered_workqueue("iwvch", WQ_MEM_RECLAIM);
		i40iw_register_notifiers();
		i40iw_register_notifiers();
		iwdev->init_state = INET_NOTIFIER;
		iwdev->init_state = INET_NOTIFIER;
		status = i40iw_add_mac_ip(iwdev);
		status = i40iw_add_mac_ip(iwdev);