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

RE: [bluetooth-dev] USB/Stack changes

> that's a race though, it will bug out if the irq occurs between the check
> and the sleep.

Yes, you are right.

> there's a standard way of solving this (same problem in every interrupt
> driven driver in linux) in linux 2.0 and 2.2:
> the irq part still does the wake_up_interruptible on the waitqueue as
> normal, but the sleeping is split into two parts: 

This sounds like the the right way.  Can it be added to the stack?

Mark Douglas Corner