]> git.baikalelectronics.ru Git - kernel.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, 14 Jun 2021 14:23:04 +0000 (08:23 -0600)
commit96b49f97132b82ad1912e45ba75a31e9c3457440
treec9763139294089b983d3d2c78e52e8f6e5082bfb
parentbc650e30083fa365ebaa408881d800f3a8d886bf
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