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)
commit7f1129d227ea54526380d0f37eb7b33ab9f200c1
treed6fad9eb14df3edb2e19a67b139fb255020cf515
parentb52ecf8cb5b5ccb8069adbdb82a68d3fa0f423db
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