]> git.proxmox.com Git - mirror_spl.git/commit
Fix bogus kmem leak warning
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 10 Jul 2013 22:04:07 +0000 (15:04 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 10 Jul 2013 22:08:22 +0000 (15:08 -0700)
commitab4e74cc38359a1e909febe31e8440a2908bd10e
treefa80214eb77adc13ab41dd3aa9844f4644dbac85
parentb1424adda53eba1b6342aab4547330acc6d783fd
Fix bogus kmem leak warning

Commit 5c7a036 correctly relocated the creation of a taskq
and the registraction of the kmem_cache_shrinker after the
initialization of the kmem tracking code.  However, the
cleanup of these structures was not done before the leak
checks in spl_kmem_fini().  This resulted in an incorrect
'kmem leaked' warning even though there was no actual leak.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes zfsonlinux/zfs#1569
module/spl/spl-kmem.c