summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2021-03-15 12:56:57 +0100
committerJens Axboe <axboe@kernel.dk>2021-03-18 09:44:35 -0600
commitee53fb2b197b72b126ca0387ae636da75d969428 (patch)
tree7a96187881cdc2597ca22ebed16c1d79815e78b8
parent53e043b2b432ef2294efec04dd8a88d96c024624 (diff)
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>
-rw-r--r--fs/io_uring.c4
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;