diff options
author | Stefan Metzmacher <metze@samba.org> | 2021-03-15 14:56:57 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-03-18 18:44:35 +0300 |
commit | ee53fb2b197b72b126ca0387ae636da75d969428 (patch) | |
tree | 7a96187881cdc2597ca22ebed16c1d79815e78b8 /fs | |
parent | 53e043b2b432ef2294efec04dd8a88d96c024624 (diff) | |
download | linux-ee53fb2b197b72b126ca0387ae636da75d969428.tar.xz |
io_uring: use typesafe pointers in io_uring_task
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Link: https://lore.kernel.org/r/ce2a598e66e48347bb04afbaf2acc67c0cc7971a.1615809009.git.metze@samba.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/io_uring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 52ba8d7f3eb8..675073966760 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -460,8 +460,8 @@ struct io_uring_task { /* submission side */ struct xarray xa; struct wait_queue_head wait; - void *last; - void *io_wq; + const struct io_ring_ctx *last; + struct io_wq *io_wq; struct percpu_counter inflight; atomic_t in_idle; bool sqpoll; |