HomeFreeBSD

zfs_trunc() should use dmu_tx_assign(tx, TXG_WAIT)

Description

zfs_trunc() should use dmu_tx_assign(tx, TXG_WAIT)

As part of the write throttle & i/o schedule performance work the
zfs_trunc() function should have been updated to use TXG_WAIT.
Using TXG_WAIT ensures that the tx will be part of the next txg.
If TXG_NOWAIT is used and retried for ERESTART errors then the
tx can suffer from starvation.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Closes #2488

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jul 21 2014, 5:19 PM
Parents
rG080b3100155c: Illumos #4756 Fix metaslab_group_preload deadlock
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG7a8f0e80eae9: zfs_trunc() should use dmu_tx_assign(tx, TXG_WAIT) (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jul 22 2014, 4:41 PM