summaryrefslogtreecommitdiff
path: root/io_uring/io_uring.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-01-04 08:46:23 -0700
committerJens Axboe <axboe@kernel.dk>2024-08-25 08:27:01 -0600
commitcebf123c634ab78d39af94caf0fc9cd2c60d82c3 (patch)
treee0a23fc104066b7b9dd1254c3d48a9a7b4b2dfcd /io_uring/io_uring.h
parent45a41e74b8f472254c64b42713bad0686350b0c6 (diff)
io_uring: implement our own schedule timeout handling
In preparation for having two distinct timeouts and avoid waking the task if we don't need to. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.h')
-rw-r--r--io_uring/io_uring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h
index 9935819f12b7..f95c1b080f4b 100644
--- a/io_uring/io_uring.h
+++ b/io_uring/io_uring.h
@@ -40,7 +40,9 @@ struct io_wait_queue {
struct io_ring_ctx *ctx;
unsigned cq_tail;
unsigned nr_timeouts;
+ int hit_timeout;
ktime_t timeout;
+ struct hrtimer t;
#ifdef CONFIG_NET_RX_BUSY_POLL
ktime_t napi_busy_poll_dt;