summaryrefslogtreecommitdiffstats
path: root/modules/spl/spl-mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/spl/spl-mutex.c')
-rw-r--r--modules/spl/spl-mutex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/spl/spl-mutex.c b/modules/spl/spl-mutex.c
index 8fb561471..82aff155f 100644
--- a/modules/spl/spl-mutex.c
+++ b/modules/spl/spl-mutex.c
@@ -171,6 +171,11 @@ __mutex_tryenter(kmutex_t *mp)
}
EXPORT_SYMBOL(__mutex_tryenter);
+#ifndef HAVE_TASK_CURR
+#define task_curr(owner) 0
+#endif
+
+
static void
mutex_enter_adaptive(kmutex_t *mp)
{