summaryrefslogtreecommitdiffstats
path: root/cmd/zpool
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-04-28 13:56:47 -0700
committerBrian Behlendorf <[email protected]>2014-05-01 12:08:53 -0700
commit12f9a6a3f954b3bb8de94e3bfc072d42b7231abc (patch)
treea4724ce09e36097bf3d7398edfb30496a3766459 /cmd/zpool
parent9d317793aa66d05a8c44410ea24a9a4166a89bbd (diff)
dmu_tx_assign() should not return ENOMEM
As described in the comment above dmu_tx_assign() this function must only fail if the pool is out of space. If for some other reason the TX cannot be assigned (such as memory pressure) ERESTART must be returned. Alternately, EAGAIN could be returned to inject a delay but that isn't required because the caller will block on the condition variable waiting for the next TXG. /* * Assign tx to a transaction group. txg_how can be one of: * * (1) TXG_WAIT. If the current open txg is full, waits until there's * a new one. This should be used when you're not holding locks. * It will only fail if we're truly out of space (or over quota). * ... */ Signed-off-by: Brian Behlendorf <[email protected]> Signed-off-by: Ned Bass <[email protected]> Closes #2287
Diffstat (limited to 'cmd/zpool')
0 files changed, 0 insertions, 0 deletions