Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Apr 2019 18:49:29 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r346699 - stable/11/sys/cddl/compat/opensolaris/kern
Message-ID:  <201904251849.x3PInTSn096416@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Apr 25 18:49:29 2019
New Revision: 346699
URL: https://svnweb.freebsd.org/changeset/base/346699

Log:
  MFC r340731 (by markj): Use taskqueue_quiesce(9) to implement taskq_wait().

Modified:
  stable/11/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c
==============================================================================
--- stable/11/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c	Thu Apr 25 18:44:03 2019	(r346698)
+++ stable/11/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c	Thu Apr 25 18:49:29 2019	(r346699)
@@ -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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904251849.x3PInTSn096416>