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)
commitd0acdee296d42e700c16271d9f95085a9c897a53
tree512cb64aa2e0dd377cfb5c8a92639878e24c6f9a
parentd068b5068d43353a352b3ec92865f7045fdb213e
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