On 2012-05-24 6:02 AM, Sujith Manoharan wrote: > When a fatal interrupt is received or it is detected that the baseband > has hung, the chip has to be reset immediately. Otherwise, we end up > processing spurious interrupts. Ensure that we bail out properly in > the ISR when the reset work hasn't completed yet. > > Signed-off-by: Sujith Manoharan <c_manoha@xxxxxxxxxxxxxxxx> Wouldn't it be much easier to just use a bool variable instead of the combination of lock+flag? A simple variable assignment is atomic... - Felix -- 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