Question about interrupt threads

Aniruddha Bohra bohra at cs.rutgers.edu
Tue Apr 22 17:47:04 PDT 2003


Hello
    I am posting it again to -smp as advised by Kris

Reading the implementation of interrupt handling on i386,
and reading Greg Lehey's Usenix paper on FreeBSD 5.0 SMP
implementation, I understand that interrupt handling is done in
process context. This is needed partly to support sleeping while
handling the interrupt because GIANT needs to be locked and
a sleep is possible there.

   My question is after all subsystems that lock giant are made
INTR_MPSAFE will the implementation go back to non-process
context interrupt handling (as in older versions) ?

   Moreover, will the locking be per-IRQ or there will be a
global IRQ lock for ensuring atomic access to the ISRs ?

   Finally why do we need to create a kernel thread for
each IRQ - why can't one kernel thread handle all the
IRQs ?

    Thanks

Aniruddha




More information about the freebsd-smp mailing list