* rt73usb & Mesh network
@ 2010-06-03 10:49 Ivo Van Doorn
2010-06-04 8:13 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Ivo Van Doorn @ 2010-06-03 10:49 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
Hi Johannes,
There is a kernel bugzilla report regarding rt73usb and mesh networks:
https://bugzilla.kernel.org/show_bug.cgi?id=16099
The stacktrace indicates the problem is a scheduling while atomic bug,
however this seems to be triggerd by mac80211 making the bss_info_changed()
callback function in atomic context. But the current documentation of mac80211
implies that this callback function is allowed to sleep.
Could you check the stacktrace to see if this is indeed a mac80211 bug rather
then rt73usb?
Thanks,
Ivo
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: rt73usb & Mesh network
2010-06-03 10:49 rt73usb & Mesh network Ivo Van Doorn
@ 2010-06-04 8:13 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2010-06-04 8:13 UTC (permalink / raw)
To: Ivo Van Doorn; +Cc: linux-wireless
On Thu, 2010-06-03 at 12:49 +0200, Ivo Van Doorn wrote:
> The stacktrace indicates the problem is a scheduling while atomic bug,
> however this seems to be triggerd by mac80211 making the bss_info_changed()
> callback function in atomic context. But the current documentation of mac80211
> implies that this callback function is allowed to sleep.
>
> Could you check the stacktrace to see if this is indeed a mac80211 bug rather
> then rt73usb?
It clearly is, at least a documentation issue in that it must not sleep
in mesh mode ... fixing it would seem to require major locking changes
in the mesh implementation, and unfortunately we don't have anybody who
has enough time to care about it.
FWIW, if anybody is interested to fix this, it seems like it should be
safe to use sta_mtx instead of rcu_read_lock() for station protection
and change a lot of mesh stuff to not use the per-sta spinlock. Must be
very careful with this though since some stuff is in the RX path.
Short of doing that, I can only suggest disabling mesh for drivers that
require being able to sleep.
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-04 8:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-03 10:49 rt73usb & Mesh network Ivo Van Doorn
2010-06-04 8:13 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).