]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't bounce submit_state cachelines
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 16 May 2021 21:58:12 +0000 (22:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Jun 2021 14:23:05 +0000 (08:23 -0600)
commitcdfce764755f91d587eee09c5273face631c98c1
tree512cb64aa2e0dd377cfb5c8a92639878e24c6f9a
parent03fe973d6b7128c03e82a23647e3a923c6c76abd
io_uring: don't bounce submit_state cachelines

struct io_submit_state contains struct io_comp_state and so
locked_free_*, that renders cachelines around ->locked_free* being
invalidated on most non-inline completions, that may terrorise caches if
submissions and completions are done by different tasks.

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