From 3ecf2d2bb66b36917520c9b66154547f3510a66a Mon Sep 17 00:00:00 2001 From: Ned Bass Date: Wed, 28 Aug 2013 20:08:03 -0700 Subject: 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 Issue #286 --- include/sys/disp.h | 1 + 1 file changed, 1 insertion(+) 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 +#define kpreempt(unused) schedule() #define kpreempt_disable() preempt_disable() #define kpreempt_enable() preempt_enable() -- cgit v1.2.3