summaryrefslogtreecommitdiffstats
path: root/module/zfs/vdev.c
diff options
context:
space:
mode:
authorGeorge Wilson <[email protected]>2013-06-14 22:30:35 -0500
committerBrian Behlendorf <[email protected]>2013-06-19 16:22:39 -0700
commite51be06697762215dc3b679f8668987034a5a048 (patch)
tree84446c5dbac3de2f8f9bee1fe67bb41096a6dfc8 /module/zfs/vdev.c
parentc99c90015ece64746e20b74245caca41d1dbefe1 (diff)
Illumos #3552, #3564
3552 condensing one space map burns 3 seconds of CPU in spa_sync() thread 3564 spa_sync() spends 5-10% of its time in metaslab_sync() (when not condensing) Reviewed by: Adam Leventhal <[email protected]> Reviewed by: Dan Kimmel <[email protected]> Reviewed by: Matthew Ahrens <[email protected]> Approved by: Richard Lowe <[email protected]> References: illumos/illumos-gate@16a4a8074274d2d7cc408589cf6359f4a378c861 https://www.illumos.org/issues/3552 https://www.illumos.org/issues/3564 Ported-by: Tim Chase <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #1513
Diffstat (limited to 'module/zfs/vdev.c')
-rw-r--r--module/zfs/vdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c
index 7df0fd6a5..d6b55ee48 100644
--- a/module/zfs/vdev.c
+++ b/module/zfs/vdev.c
@@ -1855,6 +1855,7 @@ vdev_dtl_sync(vdev_t *vd, uint64_t txg)
space_map_truncate(smo, mos, tx);
space_map_sync(&smsync, SM_ALLOC, smo, mos, tx);
+ space_map_vacate(&smsync, NULL, NULL);
space_map_destroy(&smsync);