]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: shuffle more fields into SQ ctx section
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 14 Jun 2021 22:37:22 +0000 (23:37 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jun 2021 21:38:39 +0000 (15:38 -0600)
commitfec54d38f486be688dd25e3956d6ffbcda604687
treed6fad9eb14df3edb2e19a67b139fb255020cf515
parentbf595693c5069e906021c86189326f65d5cd5f37
io_uring: shuffle more fields into SQ ctx section

Since moving locked_free_* out of struct io_submit_state
ctx->submit_state is accessed on submission side only, so move it into
the submission section. Same goes for rsrc table pointers/nodes/etc.,
they must be taken and checked during submission because sync'ed by
uring_lock, so move them there as well.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/8a5899a50afc6ccca63249e716f580b246f3dec6.1623709150.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c