]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 24 May 2021 17:40:33 +0000 (11:40 -0600)
commitf15e2191cf650da0fc0968ee6a08744d0afff461
tree09fb53bd97a3651cb9b950ecafcc9bad4c21a7bf
parentec6247723662afe04fde20c8c9a2e62f2e7f046b
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