mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
Two more GPL only symbols moved to helper functions in the spl module.
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@37 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
parent
ee4766827a
commit
b123971fc2
@ -71,13 +71,15 @@ extern void taskq_resume(taskq_t *);
|
|||||||
|
|
||||||
extern taskqid_t __taskq_dispatch(taskq_t *, task_func_t, void *, uint_t);
|
extern taskqid_t __taskq_dispatch(taskq_t *, task_func_t, void *, uint_t);
|
||||||
extern taskq_t *__taskq_create(const char *, int, pri_t, int, int, uint_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(taskq_t *);
|
||||||
|
|
||||||
#define taskq_create(name, thr, pri, min, max, flags) \
|
#define taskq_create(name, thr, pri, min, max, flags) \
|
||||||
__taskq_create(name, thr, pri, min, max, flags)
|
__taskq_create(name, thr, pri, min, max, flags)
|
||||||
#define taskq_dispatch(tq, func, priv, flags) \
|
#define taskq_dispatch(tq, func, priv, flags) \
|
||||||
__taskq_dispatch(tq, (task_func_t)func, priv, flags)
|
__taskq_dispatch(tq, (task_func_t)func, priv, flags)
|
||||||
#define taskq_destroy(tq) destroy_workqueue(tq)
|
#define taskq_destroy(tq) __taskq_destroy(tq)
|
||||||
#define taskq_wait(tq) flush_workqueue(tq)
|
#define taskq_wait(tq) __taskq_wait(tq)
|
||||||
#define taskq_member(tq, kthr) 1 /* XXX -Just be true */
|
#define taskq_member(tq, kthr) 1 /* XXX -Just be true */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -78,3 +78,17 @@ __taskq_create(const char *name, int nthreads, pri_t pri,
|
|||||||
return create_singlethread_workqueue(name);
|
return create_singlethread_workqueue(name);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(__taskq_create);
|
EXPORT_SYMBOL(__taskq_create);
|
||||||
|
|
||||||
|
void
|
||||||
|
__taskq_destroy(taskq_t *tq)
|
||||||
|
{
|
||||||
|
destroy_workqueue(tq);
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(__taskq_destroy);
|
||||||
|
|
||||||
|
void
|
||||||
|
__taskq_wait(taskq_t *tq)
|
||||||
|
{
|
||||||
|
flush_workqueue(tq);
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(__taskq_wait);
|
||||||
|
Loading…
Reference in New Issue
Block a user