]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
io_uring: index io_uring->xa by ctx not file
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 6 Mar 2021 11:02:15 +0000 (11:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 7 Mar 2021 21:12:43 +0000 (14:12 -0700)
commitbaf186c4d345f5a105e63df01100936ad622f369
tree1272c84a69cb43a9224d4d3e349b79231f0e7dc7
parenteebd2e37e662617a6b8041db75205f0a262ce870
io_uring: index io_uring->xa by ctx not file

We don't use task file notes anymore, and no need left in indexing
task->io_uring->xa by file, and replace it with ctx. It's better
design-wise, especially since we keep a dangling file, and so have to
keep an eye on not dereferencing it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/linux/io_uring.h