* Question on irq autoprobe
@ 2012-09-14 2:02 Ming Lei
2012-09-27 4:08 ` Ming Lei
0 siblings, 1 reply; 2+ messages in thread
From: Ming Lei @ 2012-09-14 2:02 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Thomas Gleixner
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?
Thanks,
--
Ming Lei
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question on irq autoprobe
2012-09-14 2:02 Question on irq autoprobe Ming Lei
@ 2012-09-27 4:08 ` Ming Lei
0 siblings, 0 replies; 2+ messages in thread
From: Ming Lei @ 2012-09-27 4:08 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Thomas Gleixner
On Fri, Sep 14, 2012 at 10:02 AM, Ming Lei <tom.leiming@gmail.com> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-27 4:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-14 2:02 Question on irq autoprobe Ming Lei
2012-09-27 4:08 ` Ming Lei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).