Skip to content

Commit 91d20ab

Browse files
committed
wifi: cfg80211: use system_unbound_wq for wiphy work
Since wiphy work items can run pretty much arbitrary code in the stack/driver, it can take longer to run all of this, so we shouldn't be using system_wq via schedule_work(). Also, we lock the wiphy (which is the reason this exists), so use system_unbound_wq. Reported-and-tested-by: Kalle Valo <[email protected]> Fixes: a3ee4dc ("wifi: cfg80211: add a work abstraction with special semantics") Signed-off-by: Johannes Berg <[email protected]>
1 parent f291209 commit 91d20ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/wireless/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ void wiphy_work_queue(struct wiphy *wiphy, struct wiphy_work *work)
16221622
list_add_tail(&work->entry, &rdev->wiphy_work_list);
16231623
spin_unlock_irqrestore(&rdev->wiphy_work_lock, flags);
16241624

1625-
schedule_work(&rdev->wiphy_work);
1625+
queue_work(system_unbound_wq, &rdev->wiphy_work);
16261626
}
16271627
EXPORT_SYMBOL_GPL(wiphy_work_queue);
16281628

0 commit comments

Comments
 (0)