Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2015 17:09:27 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        Jack Vogel <jfvogel@gmail.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: How should a driver shutdown a taskqueue on detach?
Message-ID:  <CAFMmRNzLL-K0kw_cj==kWpiocOcBLzxU2o6ONGaZRiv5tdSHxQ@mail.gmail.com>
In-Reply-To: <CAFOYbckF7brPikTPaf%2BZhdm-R9d0WzygY9-eUxnrmi3p%2BBFBoQ@mail.gmail.com>
References:  <CAFMmRNxLV0Uk9iT%2BU8rrPvn6aanSfEA6p577McM=_4xypaZr5w@mail.gmail.com> <CAFOYbckF7brPikTPaf%2BZhdm-R9d0WzygY9-eUxnrmi3p%2BBFBoQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 1, 2015 at 4:58 PM, Jack Vogel <jfvogel@gmail.com> wrote:

> But if you've disabled interrupts why would an "interrupt-handling task"
> even run??
>
> Jack
>

There's a race.  The task could have already have been scheduled by a
previous interrupt and could be running while I am trying to disable
interrupts and drain the taskqueue.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNzLL-K0kw_cj==kWpiocOcBLzxU2o6ONGaZRiv5tdSHxQ>