aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2012-12-06 13:04:27 -0800
committerBrian Behlendorf <[email protected]>2012-12-12 09:54:07 -0800
commitaed8671cb0bfc18f6cd034ecad2e9cf49536d965 (patch)
treeeb1c8793c091418bbf777dedebded437ffb1923a /include/sys
parent472a34caff3bc8b0f65e7cdb4b5960b0e2d616c2 (diff)
taskq style, remove #define wrappers
When the taskq implementation was originally written I wrapped all the API functions in #define's. This was done as a preventative measure to ensure that a taskq symbol never conflicted with an existing kernel symbol. However, in practice the taskq symbols never conflicted. The only major conflicts occured with the kmem cache API. Since this added layer of obfuscation never bought us anything for the taskq's I'm removing it. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/taskq.h40
1 files changed, 15 insertions, 25 deletions
diff --git a/include/sys/taskq.h b/include/sys/taskq.h
index 8260cf935..84b563208 100644
--- a/include/sys/taskq.h
+++ b/include/sys/taskq.h
@@ -103,33 +103,23 @@ typedef struct taskq_thread {
/* Global system-wide dynamic task queue available for all consumers */
extern taskq_t *system_taskq;
-extern taskqid_t __taskq_dispatch(taskq_t *, task_func_t, void *, uint_t);
-extern void __taskq_dispatch_ent(taskq_t *, task_func_t, void *, uint_t, taskq_ent_t *);
-extern int __taskq_empty_ent(taskq_ent_t *);
-extern void __taskq_init_ent(taskq_ent_t *);
-extern taskq_t *__taskq_create(const char *, int, pri_t, int, int, uint_t);
-extern void __taskq_destroy(taskq_t *);
-extern void __taskq_wait_id(taskq_t *, taskqid_t);
-extern void __taskq_wait(taskq_t *);
-extern int __taskq_member(taskq_t *, void *);
+extern taskqid_t taskq_dispatch(taskq_t *, task_func_t, void *, uint_t);
+extern void taskq_dispatch_ent(taskq_t *, task_func_t, void *, uint_t,
+ taskq_ent_t *);
+extern int taskq_empty_ent(taskq_ent_t *);
+extern void taskq_init_ent(taskq_ent_t *);
+extern taskq_t *taskq_create(const char *, int, pri_t, int, int, uint_t);
+extern void taskq_destroy(taskq_t *);
+extern void taskq_wait_id(taskq_t *, taskqid_t);
+extern void taskq_wait(taskq_t *);
+extern int taskq_member(taskq_t *, void *);
+
+#define taskq_create_proc(name, nthreads, pri, min, max, proc, flags) \
+ taskq_create(name, nthreads, pri, min, max, flags)
+#define taskq_create_sysdc(name, nthreads, min, max, proc, dc, flags) \
+ taskq_create(name, nthreads, maxclsyspri, min, max, flags)
int spl_taskq_init(void);
void spl_taskq_fini(void);
-#define taskq_member(tq, t) __taskq_member(tq, t)
-#define taskq_wait_id(tq, id) __taskq_wait_id(tq, id)
-#define taskq_wait(tq) __taskq_wait(tq)
-#define taskq_dispatch(tq, f, p, fl) __taskq_dispatch(tq, f, p, fl)
-#define taskq_dispatch_ent(tq, f, p, fl, t) \
- __taskq_dispatch_ent(tq, f, p, fl, t)
-#define taskq_empty_ent(t) __taskq_empty_ent(t)
-#define taskq_init_ent(t) __taskq_init_ent(t)
-#define taskq_create(n, th, p, mi, ma, fl) \
- __taskq_create(n, th, p, mi, ma, fl)
-#define taskq_create_proc(n, th, p, mi, ma, pr, fl) \
- __taskq_create(n, th, p, mi, ma, fl)
-#define taskq_create_sysdc(n, th, mi, ma, pr, dc, fl) \
- __taskq_create(n, th, maxclsyspri, mi, ma, fl)
-#define taskq_destroy(tq) __taskq_destroy(tq)
-
#endif /* _SPL_TASKQ_H */