io_uring: better locality for rsrc fields
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 16 May 2021 21:58:07 +0000 (22:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Jun 2021 14:23:04 +0000 (08:23 -0600)
commitb13a8918d395554ff9a8cee17d03ed45d805df24
treec9763139294089b983d3d2c78e52e8f6e5082bfb
parentb986af7e2df4f0871367c397ba61a542f37c0ab3
io_uring: better locality for rsrc fields

ring has two types of resource-related fields: used for request
submission, and field needed for update/registration. Reshuffle them
into these two groups for better locality and readability. The second
group is not in the hot path, so it's natural to place them somewhere in
the end. Also update an outdated comment.

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