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:
parent
08850eddcb
commit
45324c7c41
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue