X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=include%2Fsys%2Fzfs_context.h;h=8982c000b1a7863170f09a84efb51828482890b9;hb=1bd201e70d57464fd26bf9089ea4b44fd49e4f2d;hp=e4af6fc378b5a072894ecb4ee6aff08ba0b515bc;hpb=d7e398ce1a3e6f9c705af43955a684685a798c32;p=zfs.git diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h index e4af6fc..8982c00 100644 --- a/include/sys/zfs_context.h +++ b/include/sys/zfs_context.h @@ -60,6 +60,8 @@ #include #include #include +#include +#include #include #else /* _KERNEL */ @@ -92,6 +94,7 @@ #include #include #include +#include #include #include #include @@ -226,6 +229,9 @@ extern kthread_t *zk_thread_create(caddr_t stk, size_t stksize, proc_t *pp, int state, pri_t pri); extern void zk_thread_join(kt_did_t tid); +#define kpreempt_disable() ((void)0) +#define kpreempt_enable() ((void)0) + #define PS_NONE -1 #define issig(why) (FALSE) @@ -382,10 +388,10 @@ typedef struct taskq_ent { #define TASKQ_DYNAMIC 0x0004 /* Use dynamic thread scheduling */ #define TASKQ_THREADS_CPU_PCT 0x0008 /* Scale # threads by # cpus */ #define TASKQ_DC_BATCH 0x0010 /* Mark threads as batch */ -#define TASKQ_NORECLAIM 0x0020 /* Disable direct memory reclaim */ #define TQ_SLEEP KM_SLEEP /* Can block for memory */ #define TQ_NOSLEEP KM_NOSLEEP /* cannot block for memory; may fail */ +#define TQ_PUSHPAGE KM_PUSHPAGE /* Cannot perform I/O */ #define TQ_NOQUEUE 0x02 /* Do not enqueue if can't dispatch */ #define TQ_FRONT 0x08 /* Queue in front */