freebsd-dev/module
Chris Dunlop f0da4d1508 Wait for all znodes to be released before tearing down the superblock
By the time we're tearing down our superblock the VFS has started releasing
all our inodes/znodes. Some of this work may have been handed off to our
iput taskq so we need to wait for that work to complete. However the iput
from the taskq can itself result in additional work being added to the
taskq:

dsl_pool_iput_taskq
 iput
  iput_final
   evict
    destroy_inode
     zpl_inode_destroy
      zfs_inode_destroy
       zfs_iput_async(ZTOI(zp->z_xattr_parent))
        taskq_dispatch(dsl_pool_iput_taskq..., iput, ...)

Let's wait until all our znodes have been released.

Signed-off-by: Chris Dunlop <chris@onthe.net.au>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3281
2015-05-06 14:13:19 -07:00
..
avl Illumos 4873 - zvol unmap calls can take a very long time for larger datasets 2015-04-28 16:24:03 -07:00
nvpair Retire spl_module_init()/spl_module_fini() 2015-02-24 11:37:44 -08:00
unicode Retire spl_module_init()/spl_module_fini() 2015-02-24 11:37:44 -08:00
zcommon Illumos 3897 - zfs filesystem and snapshot limits 2015-04-28 16:22:51 -07:00
zfs Wait for all znodes to be released before tearing down the superblock 2015-05-06 14:13:19 -07:00
zpios Retire spl_module_init()/spl_module_fini() 2015-02-24 11:37:44 -08:00
.gitignore gitignore: anchor entries at their respective directory 2013-04-02 10:50:17 -07:00
Makefile.in Fix modules installation directory 2014-10-28 09:46:14 -07:00