Print this page
8115 parallel zfs mount
*** 23,32 ****
--- 23,33 ----
* 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,45 ****
--- 37,49 ----
#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,270 ****
--- 265,283 ----
{
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)
{