mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
3862aadf78
The spa_sync thread waits on ->spa_txg_zio and will set ZIO_WAIT_DONE before running the sync tasks. The dmu_tx_commit() call must be done after we add the child zio to the ->spa_txg_zio parent otherwise its possible the child is added after txg_sync has waited. Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #18276