From 45324c7c419b70397cae31b9f2b90ca0a97c9d77 Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Fri, 24 Aug 2012 10:42:12 -0700 Subject: [PATCH] Add kpreempt_[dis|en]able macros in To support preempt enabled kernels in ZFS on Linux, there are a couple places where the ZFS code needs to disable interrupts. This change adds the Solaris preempt functions and maps them to the equivalent ZFS functions, allowing the ZFS to make use of them. Signed-off-by: Prakash Surya Signed-off-by: Brian Behlendorf Issue #98 --- include/sys/disp.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/sys/disp.h b/include/sys/disp.h index a0a1b09572..2a4b4ded83 100644 --- a/include/sys/disp.h +++ b/include/sys/disp.h @@ -25,4 +25,9 @@ #ifndef _SPL_DISP_H #define _SPL_DISP_H +#include + +#define kpreempt_disable() preempt_disable() +#define kpreempt_enable() preempt_enable() + #endif /* SPL_DISP_H */