summaryrefslogtreecommitdiff
path: root/include/linux/io_uring.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-03-06 14:02:15 +0300
committerJens Axboe <axboe@kernel.dk>2021-03-08 00:12:43 +0300
commitbaf186c4d345f5a105e63df01100936ad622f369 (patch)
tree1272c84a69cb43a9224d4d3e349b79231f0e7dc7 /include/linux/io_uring.h
parenteebd2e37e662617a6b8041db75205f0a262ce870 (diff)
downloadlinux-baf186c4d345f5a105e63df01100936ad622f369.tar.xz
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/linux/io_uring.h')
-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;