Files
mirror_zfs/module
Brian Behlendorf fc87e269e2 Initialize vr_last_txg for rebuild
Only call txg_wait_synced() when rebuild IOs were issued for this
metaslab.  This is a small optimization since in practice the first
metaslab is very likely to have allocations and cause vr_last_txg
to be initialized.  After this point when processing empty metaslabs
txg_wait_synced() is called but with an already committed txg so it
will not wait.  Still it's better not to call txg_wait_synced() at
all when it's not needed.

Reviewed-by: Andriy Tkachuk <atkachuk@wasabi.com>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #18482
2026-05-04 10:38:46 -07:00
..
2025-03-13 17:56:54 -07:00
2026-04-27 10:57:52 -07:00
2025-03-13 17:56:27 -07:00
2026-05-04 10:38:46 -07:00
2025-11-12 13:06:22 -08:00
2026-02-05 13:48:31 -08:00