Print this page
8115 parallel zfs mount

@@ -23,10 +23,11 @@
  * Use is subject to license terms.
  */
 /*
  * Copyright 2012 Garrett D'Amore <garrett@damore.org>.  All rights reserved.
  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
+ * Copyright 2017 RackTop Systems.
  */
 
 #include <sys/taskq_impl.h>
 
 #include <sys/class.h>

@@ -36,10 +37,13 @@
 #include <sys/time.h>
 #include <sys/systm.h>
 #include <sys/sysmacros.h>
 #include <sys/unistd.h>
 
+/* avoid <sys/disp.h> */
+#define   maxclsyspri     99
+
 /* avoid <unistd.h> */
 extern long sysconf(int);
 
 /* avoiding <thread.h> */
 typedef unsigned int thread_t;

@@ -261,10 +265,19 @@
 {
         return (taskq_create_proc(name, nthr, pri,
             minalloc, maxalloc, NULL, flags));
 }
 
+/*ARGSUSED*/
+taskq_t *
+taskq_create_sysdc(const char *name, int nthr, int minalloc,
+    int maxalloc, proc_t *proc, uint_t dc, uint_t flags)
+{
+        return (taskq_create_proc(name, nthr, maxclsyspri,
+            minalloc, maxalloc, proc, flags));
+}
+
 /*ARGSUSED*/
 taskq_t *
 taskq_create_proc(const char *name, int nthreads, pri_t pri,
         int minalloc, int maxalloc, proc_t *proc, uint_t flags)
 {