closures: closure_wait_event()

Like wait_event() - except, because it uses closures and closure
waitlists it doesn't have the restriction on modifying task state inside
the condition check, like wait_event() does.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Acked-by: Coly Li <colyli@suse.de>
This commit is contained in:
Kent Overstreet 2017-12-09 12:42:44 -05:00 • committed by Kent Overstreet
commit ced58fc7ab