diff --git a/fs/io_uring.c b/fs/io_uring.c index 2ed0da75000e1c2a89078f29f182f58a9c619c12..cadd491edc6f06937e891caefbeef42a52d66474 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1156,7 +1156,7 @@ static inline void __io_req_init_async(struct io_kiocb *req) */ static inline void io_req_init_async(struct io_kiocb *req) { - struct io_uring_task *tctx = current->io_uring; + struct io_uring_task *tctx = req->task->io_uring; if (req->flags & REQ_F_WORK_INITIALIZED) return;