]> granicus.if.org Git - zfs/commit
kmem slab fixes
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 13 Feb 2009 18:28:55 +0000 (10:28 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 13 Feb 2009 18:28:55 +0000 (10:28 -0800)
commit1a944a7d0b1d9e62c7ac34d9041300007a656a17
treee04b0c4af46435ace74756bb17ec521dd4e03633
parentfce5ef8306f0413c1cede818fd6534c5b3dd1771
kmem slab fixes

- spl_slab_reclaim() 'continue' changed back to 'break' from commit
  37db7d8cf9936e6d2851a4329c11efcd9f61305c.  The original was correct,
  I have added a comment to ensure this does not happen again.
- spl_slab_reclaim() further optimized by moving the destructor call
  in spl_slab_free() outside the skc->skc_lock.  This minimizes the
  length of time the spin lock is held, allows the destructors to
  be invoked concurrently for different objects, and as a bonus makes
  it safe (although unwise) to sleep in the destructors.
module/spl/spl-kmem.c