Re: Question on taskqueue_drain

2017-04-19 Thread Hans Petter Selasky
On 04/19/17 19:36, Somayajulu, David wrote: Hans, Thanks for the info. No sleeping functions like taskqueue_drain() can be called when the MTX_DEF lock is grabbed. I am guessing this is true irrespective of whether the taskqueue is "fast" or not. Thanks Yes, that is correct. --HPS ___

RE: Question on taskqueue_drain

2017-04-19 Thread Somayajulu, David
elasky [mailto:h...@selasky.org] Sent: Tuesday, April 18, 2017 9:22 PM To: Sepherosa Ziehau ; Somayajulu, David Cc: freebsd-net@freebsd.org Subject: Re: Question on taskqueue_drain On 04/19/17 05:37, Sepherosa Ziehau wrote: > On Wed, Apr 19, 2017 at 10:39 AM, Somayajulu, David > wrote: >> S

Re: Question on taskqueue_drain

2017-04-18 Thread Hans Petter Selasky
On 04/19/17 05:37, Sepherosa Ziehau wrote: On Wed, Apr 19, 2017 at 10:39 AM, Somayajulu, David 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 w

Re: Question on taskqueue_drain

2017-04-18 Thread Sepherosa Ziehau
On Wed, Apr 19, 2017 at 10:39 AM, Somayajulu, David 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 th

RE: Question on taskqueue_drain

2017-04-18 Thread Somayajulu, David
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(). Thanks David S. (davi...@freebsd.org) ___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/ma

Question on taskqueue_drain

2017-04-18 Thread Somayajulu, David
Hi, Is it ok to call taskqueue_drain() when the MTX_DEF lock is held ? Thanks David S. ___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"