diff options
author | Ned Bass <[email protected]> | 2013-08-28 20:08:03 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-10-09 13:52:55 -0700 |
commit | 3ecf2d2bb66b36917520c9b66154547f3510a66a (patch) | |
tree | 91245c8b3123958fb24044c4782b901e210937c2 /include | |
parent | df2c0f18498d1c98e4f211fdb623376b18f18134 (diff) |
Add kpreempt() compatibility macro
This is needed for the Illumos #4045 write throttle patch. It is used
in the arc eviction code to avoid blocking all arc activity by sitting on
arcs_mtx too long.
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #286
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/disp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/disp.h b/include/sys/disp.h index 9614a47c4..c3077a73f 100644 --- a/include/sys/disp.h +++ b/include/sys/disp.h @@ -27,6 +27,7 @@ #include <linux/preempt.h> +#define kpreempt(unused) schedule() #define kpreempt_disable() preempt_disable() #define kpreempt_enable() preempt_enable() |