Author: markj
Date: Wed Nov 21 17:19:08 2018
New Revision: 340731
URL: https://svnweb.freebsd.org/changeset/base/340731

Log:
  Use taskqueue_quiesce(9) to implement taskq_wait().
  
  PR:           227784
  Reviewed by:  cem
  MFC after:    1 week
  Sponsored by: The FreeBSD Foundation
  Differential Revision:        https://reviews.freebsd.org/D17975

Modified:
  head/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c

Modified: head/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c
==============================================================================
--- head/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c   Wed Nov 21 
17:18:27 2018        (r340730)
+++ head/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c   Wed Nov 21 
17:19:08 2018        (r340731)
@@ -171,11 +171,11 @@ taskq_dispatch_ent(taskq_t *tq, task_func_t func, void
 void
 taskq_wait(taskq_t *tq)
 {
-       taskqueue_drain_all(tq->tq_queue);
+       taskqueue_quiesce(tq->tq_queue);
 }
 
 void
 taskq_wait_id(taskq_t *tq, taskqid_t id)
 {
-        taskq_wait(tq);
+       taskqueue_drain_all(tq->tq_queue);
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to