mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 04:07:45 +03:00
Illumos #3741
3741 zfs needs better comments Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Eric Schrock <eric.schrock@delphix.com> Approved by: Christopher Siden <christopher.siden@delphix.com> References: https://www.illumos.org/issues/3741 illumos/illumos-gate@3e30c24aee Ported-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #1775
This commit is contained in:
committed by
Brian Behlendorf
parent
b1118acbb1
commit
e49f1e20a0
@@ -1040,6 +1040,10 @@ dmu_tx_unassign(dmu_tx_t *tx)
|
||||
|
||||
txg_rele_to_quiesce(&tx->tx_txgh);
|
||||
|
||||
/*
|
||||
* Walk the transaction's hold list, removing the hold on the
|
||||
* associated dnode, and notifying waiters if the refcount drops to 0.
|
||||
*/
|
||||
for (txh = list_head(&tx->tx_holds); txh != tx->tx_needassign_txh;
|
||||
txh = list_next(&tx->tx_holds, txh)) {
|
||||
dnode_t *dn = txh->txh_dnode;
|
||||
@@ -1157,6 +1161,10 @@ dmu_tx_commit(dmu_tx_t *tx)
|
||||
|
||||
ASSERT(tx->tx_txg != 0);
|
||||
|
||||
/*
|
||||
* Go through the transaction's hold list and remove holds on
|
||||
* associated dnodes, notifying waiters if no holds remain.
|
||||
*/
|
||||
while ((txh = list_head(&tx->tx_holds))) {
|
||||
dnode_t *dn = txh->txh_dnode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user