]> granicus.if.org Git - zfs/commit
Make txg_wait_synced conditional in zfsvfs_teardown
authorPaul Zuchowski <31706010+PaulZ-98@users.noreply.github.com>
Thu, 15 Aug 2019 14:27:13 +0000 (10:27 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Aug 2019 14:27:13 +0000 (08:27 -0600)
commite2b31b58e8777faa51561342d72a5a30127fa4b6
treed97edab581099d6bf3c0a49d126e038484ff1108
parentdc04a8c757d7df91efbca05491174112540f6e7a
Make txg_wait_synced conditional in zfsvfs_teardown

The call to txg_wait_synced in zfsvfs_teardown should
be made conditional on the objset having dirty data.
This can prevent unnecessary txg_wait_synced during
some unmount operations.

Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Zuchowski <pzuchowski@datto.com>
Closes #9115
module/zfs/zfs_vfsops.c