]> www.infradead.org Git - users/hch/xfs.git/commit
closures: fix closure_sync + closure debugging
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 30 Jun 2024 02:12:09 +0000 (22:12 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 10 Jul 2024 13:53:39 +0000 (09:53 -0400)
commit29f1c1ae6d2fff3bf4f89d265f4a1a7c8ab78a8e
treeabbb33d3a2c71e4bdb73ad0e0d794597aaf98965
parent0435773239b5afe25801e83c8252e04299a0e306
closures: fix closure_sync + closure debugging

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: Kent Overstreet <kent.overstreet@linux.dev>
include/linux/closure.h
lib/closure.c