]> 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)
commit1d6d16e0418fc9bf9b2ff157a80c1151a9fcbfe8
treec9763139294089b983d3d2c78e52e8f6e5082bfb
parent56c08ad1ccfc895a9444967f54b46e04c9655da3
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