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 16:33:09 +0000 (10:33 -0600)
commit5e07604b637bb4e73ffb3af9f2a49ce92b837539
treed62c932655c131c02e5d0decba8e3689a45f4c40
parentd809159dbb4bee105af5da625d5ad6fc3d0cec21
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