]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
io_uring: io_queue_link*() right after submit
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 5 Nov 2019 21:22:15 +0000 (00:22 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Nov 2019 18:20:11 +0000 (11:20 -0700)
commite5eb6366ac2d1df8ad5b010718ac1997ceae45be
tree0f64ea618cdf1afead5096a629f0dbb37b7e655c
parentae9428ca61271b6b7f52ebbc359676c9fdfde523
io_uring: io_queue_link*() right after submit

After a call to io_submit_sqe(), it's already known whether it needs
to queue a link or not. Do it there, as it's simplier and doesn't keep
an extra variable across the loop.

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