OpenZFS on Linux and FreeBSD
Go to file
behlendo d6a26c6a32 Lots of fixes here:
- Detailed kmem memory allocation tracking.  We can now get on
  spl module unload a list of all memory allocations which were
  not free'd and where the original alloc was.  E.g.

SPL: 15554:632:(spl-kmem.c:442:kmem_fini()) kmem leaked 90/319332 bytes
SPL: 15554:648:(spl-kmem.c:451:kmem_fini()) address          size  data             func:line
SPL: 15554:648:(spl-kmem.c:457:kmem_fini()) ffff8100734b68b8 32    0100000001005a5a __spl_mutex_init:70
SPL: 15554:648:(spl-kmem.c:457:kmem_fini()) ffff8100734b6148 13    &tl->tl_lock     __spl_mutex_init:74
SPL: 15554:648:(spl-kmem.c:457:kmem_fini()) ffff81007ac43730 32    0100000001005a5a __spl_mutex_init:70
SPL: 15554:648:(spl-kmem.c:457:kmem_fini()) ffff81007ac437d8 13    &tl->tl_lock     __spl_mutex_init:74

- Shift to using rwsems in kmem implmentation, to simply locking and
  improve concurency.

- Shift to using rwsems in mutex implementation, additionally ensure we
  never sleep in the init function if non-zero preempt_count or 
  interrupts are disabled as can happen in a slab cache ctor/dtor.

- Other minor formating fixes and such.

TODO:

- Finish the vmem memory allocation tracking

- Vet all other SPL primatives for potential sleeping during *_init.  I
suspect the rwlock implemenation does this and should be fixes just
like the mutex implemenation.



git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@95 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
2008-05-06 20:38:28 +00:00
cmd Handful of minor stack checking fixes 2008-04-21 18:08:33 +00:00
include Lots of fixes here: 2008-05-06 20:38:28 +00:00
lib Reorganize /include/ to add a /sys/, this way we don't need to 2008-03-01 00:45:59 +00:00
modules Lots of fixes here: 2008-05-06 20:38:28 +00:00
scripts Update kmem.h to properly use new debug subsystem. 2008-04-24 20:21:07 +00:00
ChangeLog Commit adaptive mutexes. This seems to have introduced some new 2008-05-05 20:18:49 +00:00
FIXME Fixed that. 2008-03-28 18:22:29 +00:00
Makefile.am OK, everything builds now. My initial intent was to place all of 2008-02-27 20:52:44 +00:00
autogen.sh Quiet libtool 2008-02-27 20:55:24 +00:00
configure.ac Prep for 0.2.1 tag 2008-04-24 17:41:23 +00:00