Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2011 11:34:13 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        freebsd-arch@FreeBSD.org
Subject:   Re: skipping locks, mutex_owned, usb
Message-ID:  <4E5B4F05.4090505@FreeBSD.org>
In-Reply-To: <4E57E5D8.3010606@FreeBSD.org>
References:  <4E53986B.5000804@FreeBSD.org> <201108230911.09021.jhb@freebsd.org> <4E564F15.3010809@FreeBSD.org> <201108250945.24606.jhb@freebsd.org> <4E57E5D8.3010606@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E5B4F05.4090505>