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>
Thu, 21 Sep 2023 18:03:38 +0000 (12:03 -0600)
commit06a101ca45b296fe951692620b0bc49abf90c368
tree6a9c85178dfa16dd5ad894025b4ea4473834a7d9
parent9d900d4ea352069de8728f11fe4b20051d64cc20
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