Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Oct 2004 14:19:00 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        mjacob44@yahoo.com
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/pci if_vr.c
Message-ID:  <20041031.141900.36023096.imp@bsdimp.com>
In-Reply-To: <20041031035037.59607.qmail@web21422.mail.yahoo.com>
References:  <F984F473F79BBB9BF467E2C4@caspian.scsiguy.com> <20041031035037.59607.qmail@web21422.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20041031035037.59607.qmail@web21422.mail.yahoo.com>
            Matthew Jacob <mjacob44@yahoo.com> writes:
: Shouldn't an API for adding or removing ISR's be responsible for
: handling just such a race condition?

It does.  After you've deregistered your interrupt, you are guaranteed
that (a) it will never be called again and (b) no one is currently in
that ISR.

However, if you just turn off the interrupts in the hardware device,
neither (a) nor (b) apply.

Warner



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