1 --- spl-0.6.3/module/spl/spl-kmem.c~ 2014-06-12 22:59:01.000000000 +0200
2 +++ spl-0.6.3/module/spl/spl-kmem.c 2014-11-09 16:42:21.157985621 +0100
7 +#include <linux/version.h>
10 #undef SS_DEBUG_SUBSYS
11 @@ -1889,12 +1889,14 @@
12 return !test_bit(KMC_BIT_GROWING, &skc->skc_flags);
15 +#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
17 spl_cache_reclaim_wait(void *word)
25 * No available objects on any slabs, create a new slab. Note that this
26 @@ -1917,8 +1919,13 @@
27 * then return so the local magazine can be rechecked for new objects.
29 if (test_bit(KMC_BIT_REAPING, &skc->skc_flags)) {
30 +#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
31 rc = wait_on_bit(&skc->skc_flags, KMC_BIT_REAPING,
32 spl_cache_reclaim_wait, TASK_UNINTERRUPTIBLE);
34 + rc = wait_on_bit_io(&skc->skc_flags, KMC_BIT_REAPING,
35 + TASK_UNINTERRUPTIBLE);
37 SRETURN(rc ? rc : -EAGAIN);