Date: Fri, 20 Aug 2010 18:14:37 -0400 From: Ryan Stone <rysto32@gmail.com> To: John Giacomoni <john.giacomoni@lineratesystems.com> Cc: freebsd-hackers@freebsd.org Subject: Re: use of rwlocks safe in network stack? Message-ID: <AANLkTikxg%2B2ALp5b%2Bio78w_N0GVaY2LcjCzW3jHAsucD@mail.gmail.com> In-Reply-To: <5F142BAD-E8F5-46C4-9AF3-D5E7AEAD93A0@lineratesystems.com> References: <5F142BAD-E8F5-46C4-9AF3-D5E7AEAD93A0@lineratesystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I don't know the details of the bce driver, but presumably the interrupt handling is happening in the context of a software interrupt thread, where it is safe to take mutexes and rwlocks. You are only in interrupt context in a "fast" interrupt handler.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikxg%2B2ALp5b%2Bio78w_N0GVaY2LcjCzW3jHAsucD>