aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-09-29 16:48:35 -0400
committerBrian Behlendorf <[email protected]>2014-10-17 15:07:28 -0700
commita80d69caf0daa28d661c88cb699bee02de2e312d (patch)
tree0dd74a2c68cd28e82a7ed518e67cb71948b63726 /config
parent56cfabd3e8ceac79703edd4453c2c2d89a15ff6f (diff)
Remove adaptive mutex implementation
Since the Linux 2.6.29 kernel all mutexes have been adaptive mutexs. There is no longer any point in keeping this code so it is being removed to simplify the code. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'config')
-rw-r--r--config/spl-build.m422
1 files changed, 3 insertions, 19 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4
index 1acacb5b6..d8cc018de 100644
--- a/config/spl-build.m4
+++ b/config/spl-build.m4
@@ -28,7 +28,6 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
SPL_AC_TYPE_UINTPTR_T
SPL_AC_2ARGS_REGISTER_SYSCTL
SPL_AC_SHRINKER_CALLBACK
- SPL_AC_TASK_CURR
SPL_AC_CTL_UNNUMBERED
SPL_AC_CTL_NAME
SPL_AC_VMALLOC_INFO
@@ -998,23 +997,6 @@ AC_DEFUN([SPL_AC_SHRINKER_CALLBACK],[
])
dnl #
-dnl # Custom SPL patch may export this system it is not required
-dnl #
-AC_DEFUN([SPL_AC_TASK_CURR],
- [AC_MSG_CHECKING([whether task_curr() is available])
- SPL_LINUX_TRY_COMPILE_SYMBOL([
- #include <linux/sched.h>
- ], [
- task_curr(NULL);
- ], [task_curr], [kernel/sched.c], [
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_TASK_CURR, 1, [task_curr() is available])
- ], [
- AC_MSG_RESULT(no)
- ])
-])
-
-dnl #
dnl # 2.6.19 API change,
dnl # Use CTL_UNNUMBERED when binary sysctl is not required
dnl #
@@ -1220,7 +1202,9 @@ AC_DEFUN([SPL_AC_INODE_I_MUTEX], [
dnl #
dnl # 2.6.29 API change,
-dnl # Adaptive mutexs introduced.
+dnl # Adaptive mutexs were introduced which track the mutex owner. The
+dnl # mutex wrappers leverage this functionality to avoid tracking the
+dnl # owner multipe times.
dnl #
AC_DEFUN([SPL_AC_MUTEX_OWNER], [
AC_MSG_CHECKING([whether struct mutex has owner])