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:
pjd 2010-05-16 19:44:08 +00:00
parent 8ea4ab29a0
commit 15e5afeb5b
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,