]> 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)
commit80d72f3c8bb6d7bddb0c9bb159ccf25fa4d3d81c
treed6fad9eb14df3edb2e19a67b139fb255020cf515
parent77670bfe45b3b63b766dfd386a989f0f6e3693d9
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