]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a54258c83e1c0e80e8e81e8b2a0caac5c16c7d9
tree1272c84a69cb43a9224d4d3e349b79231f0e7dc7
parent2cea88a41941d7423280578287e81502b8e5a681
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