mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 11:47:43 +03:00
Small rework of txg_list code
This patch simply adds some missing locking to the txg_list functions and refactors txg_verify() so that it is only compiled in for debug builds. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tom Caputi <tcaputi@datto.com> Closes #7795
This commit is contained in:
committed by
Brian Behlendorf
parent
a584ef2605
commit
8c4fb36a24
+1
-1
@@ -87,7 +87,7 @@ dmu_tx_create_assigned(struct dsl_pool *dp, uint64_t txg)
|
||||
{
|
||||
dmu_tx_t *tx = dmu_tx_create_dd(NULL);
|
||||
|
||||
txg_verify(dp->dp_spa, txg);
|
||||
TXG_VERIFY(dp->dp_spa, txg);
|
||||
tx->tx_pool = dp;
|
||||
tx->tx_txg = txg;
|
||||
tx->tx_anyobj = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user