]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
io_uring: remove index from sqe_submit
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 27 Oct 2019 15:52:20 +0000 (18:52 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Oct 2019 16:24:21 +0000 (10:24 -0600)
commitfa4562280889ad372dfb1413833a8b8675721b17
treee6ede89d2964d4347e68b32df37999fc7f80957f
parentc826bd7a743f275e2b68c16d595534063b400deb
io_uring: remove index from sqe_submit

submit->index is used only for inbound check in submission path (i.e.
head < ctx->sq_entries). However, it always will be true, as
1. it's already validated by io_get_sqring()
2. ctx->sq_entries can't be changedd in between, because of held
ctx->uring_lock and ctx->refs.

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