Question on taskqueue_drain
Sepherosa Ziehau
sepherosa at gmail.com
Wed Apr 19 03:37:17 UTC 2017
On Wed, Apr 19, 2017 at 10:39 AM, Somayajulu, David
<David.Somayajulu at cavium.com> wrote:
> Sorry what I meant to ask was, whether it is O.K to call taskqueue_drain(), when an MTX_DEF lock is grabbed prior to calling taskqueue_drain().
>
You will hit WITNESS, if the drain needs to wait; that's probably the
best case. If the lock will be acquired in the task being drained,
this leads to deadlock.
Thanks,
sephe
--
Tomorrow Will Never Die
More information about the freebsd-net
mailing list