Skip to content

Commit ee53fb2

Browse files
metze-sambaaxboe
authored andcommitted
io_uring: use typesafe pointers in io_uring_task
Signed-off-by: Stefan Metzmacher <[email protected]> Link: https://lore.kernel.org/r/ce2a598e66e48347bb04afbaf2acc67c0cc7971a.1615809009.git.metze@samba.org Signed-off-by: Jens Axboe <[email protected]>
1 parent 53e043b commit ee53fb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/io_uring.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,8 @@ struct io_uring_task {
460460
/* submission side */
461461
struct xarray xa;
462462
struct wait_queue_head wait;
463-
void *last;
464-
void *io_wq;
463+
const struct io_ring_ctx *last;
464+
struct io_wq *io_wq;
465465
struct percpu_counter inflight;
466466
atomic_t in_idle;
467467
bool sqpoll;

0 commit comments

Comments
 (0)