Search Linux Wireless

Re: [PATCH] mac80211: fix scheduled scan rtnl deadlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2013-11-06 at 10:43 +0100, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@xxxxxxxxx>
> 
> When changing cfg80211 to use RTNL locking, this caused a
> deadlock in mac80211 as it calls cfg80211_sched_scan_stopped()
> from a work item that's on a workqueue that is flushed with
> the RTNL held.
> 
> Fix this by simply using schedule_work(), the work only needs
> to finish running before the wiphy is unregistered, no other
> synchronisation (e.g. with suspend) is really required since
> for suspend userspace is already blocked anyway when we flush
> the workqueue so will only pick up the event after resume.

Applied.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux