Print this page
8115 parallel zfs mount
@@ -21,10 +21,11 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2017 RackTop Systems.
*/
#ifndef _SYS_TASKQ_H
#define _SYS_TASKQ_H
@@ -60,11 +61,11 @@
#define TQ_NOSLEEP 0x01 /* cannot block for memory; may fail */
#define TQ_NOQUEUE 0x02 /* Do not enqueue if can't dispatch */
#define TQ_NOALLOC 0x04 /* cannot allocate memory; may fail */
#define TQ_FRONT 0x08 /* Put task at the front of the queue */
-#if defined(_KERNEL) || defined(_FAKE_KERNEL)
+#if defined(_KERNEL) || defined(_FAKE_KERNEL) || defined(_TASKQUSER)
extern taskq_t *system_taskq;
extern void taskq_init(void);
extern void taskq_mp_init(void);
@@ -83,11 +84,11 @@
extern void taskq_suspend(taskq_t *);
extern int taskq_suspended(taskq_t *);
extern void taskq_resume(taskq_t *);
extern int taskq_member(taskq_t *, kthread_t *);
-#endif /* _KERNEL */
+#endif /* _KERNEL || _FAKE_KERNEL || _TASKQUSER */
#ifdef __cplusplus
}
#endif