git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Retry removal of busy minors
[zfs.git]
/
module
/
zfs
/
dsl_pool.c
diff --git
a/module/zfs/dsl_pool.c
b/module/zfs/dsl_pool.c
index
ba42f0b
..
d428b7a
100644
(file)
--- a/
module/zfs/dsl_pool.c
+++ b/
module/zfs/dsl_pool.c
@@
-517,8
+517,10
@@
dsl_pool_tempreserve_space(dsl_pool_t *dp, uint64_t space, dmu_tx_t *tx)
reserved = dp->dp_space_towrite[tx->tx_txg & TXG_MASK]
+ dp->dp_tempreserved[tx->tx_txg & TXG_MASK] / 2;
reserved = dp->dp_space_towrite[tx->tx_txg & TXG_MASK]
+ dp->dp_tempreserved[tx->tx_txg & TXG_MASK] / 2;
- if (reserved && reserved > write_limit)
+ if (reserved && reserved > write_limit) {
+ DMU_TX_STAT_BUMP(dmu_tx_write_limit);
return (ERESTART);
return (ERESTART);
+ }
}
atomic_add_64(&dp->dp_tempreserved[tx->tx_txg & TXG_MASK], space);
}
atomic_add_64(&dp->dp_tempreserved[tx->tx_txg & TXG_MASK], space);