diff options
author | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-06-04 06:00:46 +0000 |
---|---|---|
committer | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-06-04 06:00:46 +0000 |
commit | c30df9c8630b3b05cfbbf5c1700030f47e5b77c7 (patch) | |
tree | b0a04e2c4558f5460dfb6075f03b7b3f369d816b /autoconf | |
parent | 691d2bd73332fcff869860b3e6a2e37a04f737f2 (diff) |
Fixes:
1) Ensure mutex_init() never fails in the case of ENOMEM by retrying
forever. I don't think I've ever seen this happen but it was clear
after code inspection that if it did we would immediately crash.
2) Enable full debugging in check.sh for sanity tests. Might as well
get as much debug as we can in the case of a failure.
3) Reworked list of kmem caches tracked by SPL in to a hash with the
key based on the address of the kmem_cache_t. This should speed
up the constructor/destructor/shrinker lookup needed now for newer
kernel which removed the destructor support.
4) Updated kmem_cache_create to handle the case where CONFIG_SLUB
is defined. The slub would occasionally merge slab caches which
resulted in non-unique keys for our hash lookup in 3). To fix this
we detect if the slub is enabled and then set the needed flag
to prevent this merging from ever occuring.
5) New kernels removed the proc_dir_entry pointer from items
registered by sysctl. This means we can no long be sneaky and
manually insert things in to the sysctl tree simply by walking
the proc tree. So I'm forced to create a seperate tree for
all the things I can't easily support via sysctl interface.
I don't like it but it will do for now.
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@124 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/spl-build.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/autoconf/spl-build.m4 b/autoconf/spl-build.m4 index d2d476d4f..db0960695 100644 --- a/autoconf/spl-build.m4 +++ b/autoconf/spl-build.m4 @@ -282,6 +282,17 @@ AC_DEFUN([SPL_CHECK_SYMBOL_EXPORT], dnl # dnl # 2.6.x API change +dnl # Slab can now be implemented in terms of the Slub which provides +dnl # slightly different semantics in terms of merged caches. +dnl # +AC_DEFUN([SPL_AC_SLUB], [ + SPL_LINUX_CONFIG([SLUB], + [AC_DEFINE(HAVE_SLUB, 1, [slub support configured])], + []) +]) + +dnl # +dnl # 2.6.x API change dnl # check if uintptr_t typedef is defined dnl # AC_DEFUN([SPL_AC_TYPE_UINTPTR_T], |