closures: closure_sync_timeout()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 3 May 2024 18:43:54 +0000 (14:43 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 8 May 2024 21:29:22 +0000 (17:29 -0400)
commit4c5b7294dedbdfae46f77262c0744879bb9b7221
tree250afe51caab7ba04bdd8cd0233871d6b19ca229
parent9a768ab75bef37eac23022f296e9be63b5f85565
closures: closure_sync_timeout()

Add a new variant of closure_sync_timeout() that takes a timeout.

Note that when this returns -ETIME the closure will still be waiting on
something, i.e. it's not safe to return if you've got a stack allocated
closure.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
include/linux/closure.h
lib/closure.c