mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
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:
parent
df2c0f1849
commit
3ecf2d2bb6
@ -27,6 +27,7 @@
|
||||
|
||||
#include <linux/preempt.h>
|
||||
|
||||
#define kpreempt(unused) schedule()
|
||||
#define kpreempt_disable() preempt_disable()
|
||||
#define kpreempt_enable() preempt_enable()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user