Searched refs:iowq (Results 1 – 1 of 1) sorted by relevance
2473 static inline bool io_should_wake(struct io_wait_queue *iowq) in io_should_wake() argument2475 struct io_ring_ctx *ctx = iowq->ctx; in io_should_wake()2476 int dist = READ_ONCE(ctx->rings->cq.tail) - (int) iowq->cq_tail; in io_should_wake()2483 return dist >= 0 || atomic_read(&ctx->cq_timeouts) != iowq->nr_timeouts; in io_should_wake()2489 struct io_wait_queue *iowq = container_of(curr, struct io_wait_queue, wq); in io_wake_function() local2495 if (io_should_wake(iowq) || io_has_work(iowq->ctx)) in io_wake_function()2525 struct io_wait_queue *iowq) in io_cqring_wait_schedule() argument2537 if (unlikely(io_should_wake(iowq))) in io_cqring_wait_schedule()2549 if (iowq->timeout == KTIME_MAX) in io_cqring_wait_schedule()2551 else if (!schedule_hrtimeout(&iowq->timeout, HRTIMER_MODE_ABS)) in io_cqring_wait_schedule()[all …]