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 <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #98
#ifndef _SPL_DISP_H
#define _SPL_DISP_H
+#include <linux/preempt.h>
+
+#define kpreempt_disable() preempt_disable()
+#define kpreempt_enable() preempt_enable()
+
#endif /* SPL_DISP_H */