Fix userland build by making io_task available only for the kernel and by

providing taskq_dispatch_safe() macro.

MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2010-05-16 19:44:08 +00:00
parent 4542827d4d
commit 2b3d97b81d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208166
2 changed files with 5 additions and 0 deletions

View File

@ -343,6 +343,9 @@ extern void taskq_wait(taskq_t *);
extern int taskq_member(taskq_t *, void *);
extern void system_taskq_init(void);
#define taskq_dispatch_safe(tq, func, arg, task) \
taskq_dispatch((tq), (func), (arg), TQ_SLEEP)
#define XVA_MAPSIZE 3
#define XVA_MAGIC 0x78766174

View File

@ -317,8 +317,10 @@ struct zio {
/* FMA state */
uint64_t io_ena;
#ifdef _KERNEL
/* FreeBSD only. */
struct ostask io_task;
#endif
};
extern zio_t *zio_null(zio_t *pio, spa_t *spa,