]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/tctx: clean up __io_uring_add_tctx_node() error handling
authorJens Axboe <axboe@kernel.dk>
Wed, 8 Apr 2026 17:31:38 +0000 (11:31 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Apr 2026 19:21:34 +0000 (13:21 -0600)
commit7880174e1e5e88944ea75cf871efd77ec5e3ef51
treeecf5ec0d30cabc602215e1fda6d1ad4f1ff3b246
parent2c453a4281245135b9e6f1048962272c74853b53
io_uring/tctx: clean up __io_uring_add_tctx_node() error handling

Refactor __io_uring_add_tctx_node() so that on error it never leaves
current->io_uring pointing at a half-setup tctx. This moves the
assignment of current->io_uring to the end of the function post any
failure points.

Separate out the node installation into io_tctx_install_node() to
further clean this up.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/tctx.c