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: Yuanyuan Liu <yuanliu@codeaurora.org>
This commit is contained in:
Yuanyuan Liu 2016-07-26 10:26:22 -07:00
parent cc915a3931
commit d8fabbe1ff

View file

@ -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;