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

Re: [bluetooth-dev] queue_task() problems



On Fri, Mar 16, 2001 at 04:22:51PM +0100, Claus Tondering wrote:
> I'm porting the bluetooth stack to a Linux system with an old
> proprietary USB stack.
> 
> My problem is that hci.c at various places uses
> queue_task(...,&tq_scheduler) to schedule functions that transmit data
> to the Bluetooth device. Functions scheduled in this way will be
> called by schedule(). But this gives problems if the underlying device
> driver (in my case a USB driver) itself modifies current->state and
> calls schedule(), which will then get called recursively.

Is there any reason you can't use the current Linux USB stack, which
doesn't have this problem?  Or how about fixing your proprietary USB
stack, which shouldn't be doing things like this :)

greg k-h

-- 
greg@xxxxxxx.com
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com