Trigerring a taskqueue from the if_start routine crashes FreeBSD6

Sebastien sebastien.bourdeauducq at
Sun Nov 13 03:33:17 GMT 2005


My 802.11 driver queues frames to send to the device in a tailq and then 
triggers a taskqueue to actually send them. The taskqueue is required because 
I need to do two USB transfers, and wait for the first one to complete before 
I start the second : doing this asynchronously would be a pain.

This used to work fine under FreeBSD 5, but with 6, the system randomly 
freezes without any error message, and doesn't respond to anything else than 
the big red button. The crash seems more likely to happen when there are 3 or 
more frames in the tailq when the taskqueue runs.

My code is online at

The taskqueue-related code is all in output_layer.c, and the interface with 
the 802.11 and network stack, from which the taskqueue is triggered, is in 

The taskqueue is also trigerred from the thread created to bring the device up 
when it's detected, but it doesn't crash there (but the frames are queued one 
by one there).

Any ideas ?


More information about the freebsd-hackers mailing list