diff options
author | 2024-06-22 21:38:58 -0400 | |
---|---|---|
committer | 2024-06-23 00:57:21 -0400 | |
commit | 06efa5f30c28eaf237247ca8c4cb46eb62cb6bd9 (patch) | |
tree | 5441281fa1f247b064c9bf33b3dffd56ab59d262 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bcachefs: Make btree_deadlock_to_text() clearer (diff) | |
download | wireguard-linux-06efa5f30c28eaf237247ca8c4cb46eb62cb6bd9.tar.xz wireguard-linux-06efa5f30c28eaf237247ca8c4cb46eb62cb6bd9.zip |
closures: closure_get_not_zero(), closure_return_sync()
Provide new primitives for solving a lifetime issue with bcachefs
btree_trans objects.
closure_sync_return(): like closure_sync(), wait synchronously for any
outstanding gets. like closure_return, the closure is considered
"finished" and the ref left at 0.
closure_get_not_zero(): get a ref on a closure if it's alive, i.e. the
ref is not zero.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions