Re: Question on irq autoprobe

From: Ming Lei
Date: Thu Sep 27 2012 - 00:07:56 EST


On Fri, Sep 14, 2012 at 10:02 AM, Ming Lei <tom.leiming@xxxxxxxxx> wrote:
> Hi,
>
> I see the below comments on probe_irq_off:
>
> * BUGS: When used in a module (which arguably shouldn't happen)
> * nothing prevents two IRQ probe callers from overlapping. The
> * results of this are non-optimal.
> */
>
> But from the code of probe_irq_on and probe_irq_off, the mutex of
> probing_active is held during the whole irq probe procedure, so
> I don't understand why the above said that 'nothing prevents two
> IRQ probe callers from overlapping", and why isn't the mutex of
> probing_active enough to avoid the overlapping?

Thomas, I really appreciate that if you may clarify the question, :-)


Thank,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/