]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
io_uring: remove extra nxt check after punt
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 29 Feb 2020 19:48:24 +0000 (22:48 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Mar 2020 21:06:40 +0000 (14:06 -0700)
commit4bc4494ec7c97ee38e2aa3d1cd76e289c49ac083
treeac3d220696cc18b8ff1981bbf088152f53fff679
parentd7718a9d25a61442da8ee8aeeff6a0097f0ccfd6
io_uring: remove extra nxt check after punt

After __io_queue_sqe() ended up in io_queue_async_work(), it's already
known that there is no @nxt req, so skip the check and return from the
function.

Also, @nxt initialisation now can be done just before
io_put_req_find_next(), as there is no jumping until it's checked.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c