]> granicus.if.org Git - zfs/commitdiff
Add taskq_wait_outstanding() function
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Jun 2015 23:25:37 +0000 (16:25 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 11 Jun 2015 17:27:25 +0000 (10:27 -0700)
SPL commit behlendorf/spl@9cef1b5 adds the taskq_wait_outstanding()
interface.  See the commit log for the full justification for this
addition.  This patch adds the required user space counterpart.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
include/sys/zfs_context.h
lib/libzpool/taskq.c

index 761b1d57a116750beb13e6eb806664c4f13359d5..8b9a5f46fbf02a536347f16326497a15c46883d9 100644 (file)
@@ -468,6 +468,7 @@ extern void taskq_init_ent(taskq_ent_t *);
 extern void    taskq_destroy(taskq_t *);
 extern void    taskq_wait(taskq_t *);
 extern void    taskq_wait_id(taskq_t *, taskqid_t);
+extern void    taskq_wait_outstanding(taskq_t *, taskqid_t);
 extern int     taskq_member(taskq_t *, kthread_t *);
 extern int     taskq_cancel_id(taskq_t *, taskqid_t);
 extern void    system_taskq_init(void);
index d63bc28e23799fb5ca086a6e581567ed8d78f361..c6fa2fff72b6fe350d11df0d4e6d3c4d08c5fe8f 100644 (file)
@@ -220,6 +220,12 @@ taskq_wait_id(taskq_t *tq, taskqid_t id)
        taskq_wait(tq);
 }
 
+void
+taskq_wait_outstanding(taskq_t *tq, taskqid_t id)
+{
+       taskq_wait(tq);
+}
+
 static void
 taskq_thread(void *arg)
 {