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 <behlendorf1@llnl.gov>
Issue #286
This commit is contained in:
Ned Bass 2013-08-28 20:08:03 -07:00 committed by Brian Behlendorf
parent df2c0f1849
commit 3ecf2d2bb6

View File

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