diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-03-06 14:02:15 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-03-08 00:12:43 +0300 |
commit | baf186c4d345f5a105e63df01100936ad622f369 (patch) | |
tree | 1272c84a69cb43a9224d4d3e349b79231f0e7dc7 /include/linux/io_uring.h | |
parent | eebd2e37e662617a6b8041db75205f0a262ce870 (diff) | |
download | linux-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.h | 2 |
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; |