Add kpreempt_[dis|en]able macros in <sys/disp.h>

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
This commit is contained in:
Prakash Surya 2012-08-24 10:42:12 -07:00 committed by Brian Behlendorf
parent 08850eddcb
commit 45324c7c41
1 changed files with 5 additions and 0 deletions

View File

@ -25,4 +25,9 @@
#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 */