bcachefs: Fix nocow write path closure bug
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 19 Mar 2023 17:01:06 +0000 (13:01 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:58 +0000 (17:09 -0400)
commitdc6274bcb87dbf50c62d9dbacba770bae2f10279
treea420763529e7ddfc5d2a8fbc1543426f231e1c9b
parentac77810cb4ffd16976487d787e2f81ba9cb5fd0c
bcachefs: Fix nocow write path closure bug

With regular waitlists, we need to ensure we always call finish_wait().
With closures, the equivalent is that we need to call closure_sync()
before returning with a stack-allocated closure.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io.c