• Kent Overstreet's avatar
    closures: fix closure_sync + closure debugging · 29f1c1ae
    Kent Overstreet authored
    originally, stack closures were only used synchronously, and with the
    original implementation of closure_sync() the ref never hit 0; thus,
    closure_put_after_sub() assumes that if the ref hits 0 it's on the debug
    list, in debug mode.
    
    that's no longer true with the current implementation of closure_sync,
    so we need a new magic so closure_debug_destroy() doesn't pop an assert.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    29f1c1ae
closure.h 13.3 KB