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

Commit d8fabbe1 authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

icnss: Update event workqueue flags



There are events doing probe/remove operations that
shouldn't be swapped. Strict the order by setting
max_active to 1 and adding the WQ_UNBOUND flag.

Change-Id: If65c952622bbaa3f71de6d02c81dbbba5ccead4e
CRs-Fixed: 1046131
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent cc915a39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2387,7 +2387,7 @@ static int icnss_probe(struct platform_device *pdev)
	spin_lock_init(&penv->event_lock);
	spin_lock_init(&penv->on_off_lock);

	penv->event_wq = alloc_workqueue("icnss_driver_event", 0, 0);
	penv->event_wq = alloc_workqueue("icnss_driver_event", WQ_UNBOUND, 1);
	if (!penv->event_wq) {
		icnss_pr_err("Workqueue creation failed\n");
		ret = -EFAULT;