Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 06efa5f3 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 18e92841
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment