]> granicus.if.org Git - spl/commitdiff
Add kpreempt() compatibility macro
authorNed Bass <bass6@llnl.gov>
Thu, 29 Aug 2013 03:08:03 +0000 (20:08 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 9 Oct 2013 20:52:55 +0000 (13:52 -0700)
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 <behlendorf1@llnl.gov>
Issue #286

include/sys/disp.h

index 9614a47c41f7be4b784a44aa7aa2c1b153ed916f..c3077a73fcf11622f49761c63ef2ec26f77f73f7 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <linux/preempt.h>
 
+#define        kpreempt(unused)        schedule()
 #define        kpreempt_disable()      preempt_disable()
 #define        kpreempt_enable()       preempt_enable()