exit: move core of do_wait() into helper
authorJens Axboe <axboe@kernel.dk>
Tue, 11 Jul 2023 16:34:37 +0000 (10:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 11 Sep 2023 15:41:24 +0000 (09:41 -0600)
commit3985804465d55514a9204662b6872670df248f3e
treeff8feb7c82c2998b9f4867af2c9ae4d5c2d11e29
parent97d3a36a80e07dd4cf21c74d766f8844f4b950ff
exit: move core of do_wait() into helper

Rather than have a maze of gotos, put the actual logic in __do_wait()
and have do_wait() loop deal with waitqueue setup/teardown and whether
to call __do_wait() again.

No functional changes intended in this patch.

Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
kernel/exit.c