summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-03-06 11:02:15 +0000
committerJens Axboe <axboe@kernel.dk>2021-03-07 14:12:43 -0700
commitbaf186c4d345f5a105e63df01100936ad622f369 (patch)
tree1272c84a69cb43a9224d4d3e349b79231f0e7dc7 /include
parenteebd2e37e662617a6b8041db75205f0a262ce870 (diff)
downloadlinux-baf186c4d345f5a105e63df01100936ad622f369.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/io_uring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h
index 7cb7bd0e334c..9761a0ec9f95 100644
--- a/include/linux/io_uring.h
+++ b/include/linux/io_uring.h
@@ -18,7 +18,7 @@ struct io_uring_task {
/* submission side */
struct xarray xa;
struct wait_queue_head wait;
- struct file *last;
+ void *last;
void *io_wq;
struct percpu_counter inflight;
atomic_t in_idle;