skipping locks, mutex_owned, usb

Andriy Gapon avg at FreeBSD.org
Mon Aug 29 08:34:16 UTC 2011


on 26/08/2011 21:28 Andriy Gapon said the following:
> I do not see how internal state of kbd drivers is protected from races between
> interrupts and calls from upper layers.  The only possibility that I see is that
> kbd interrupt handlers do not directly change the driver state but rather "call
> back" into the driver via sckbdevent().

Errm, it was pointed out to me that INTR_MPSAFE flag is not passed to
bus_setup_intr() for those interrupts, so the interrupt handlers are executed
under the Giant

-- 
Andriy Gapon


More information about the freebsd-arch mailing list