Skip to content

Commit

Permalink
mac80211_hwsim: don't use WQ_MEM_RECLAIM
Browse files Browse the repository at this point in the history
We're obviously not part of a memory reclaim path, so don't set the flag.

This also causes a warning in check_flush_dependency() since we end up
in a code path that flushes a non-reclaim workqueue, and we shouldn't do
that if we were really part of reclaim.

Reported-by: [email protected]
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
jmberg-intel committed Feb 19, 2018
1 parent bee92d0 commit ce162bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -3455,7 +3455,7 @@ static int __init init_mac80211_hwsim(void)

spin_lock_init(&hwsim_radio_lock);

hwsim_wq = alloc_workqueue("hwsim_wq",WQ_MEM_RECLAIM,0);
hwsim_wq = alloc_workqueue("hwsim_wq", 0, 0);
if (!hwsim_wq)
return -ENOMEM;

Expand Down

0 comments on commit ce162bf

Please sign in to comment.