Lines Matching refs:seq
906 u32 seq; member
1381 static bool req_need_defer(struct io_kiocb *req, u32 seq) in req_need_defer() argument
1386 return seq + READ_ONCE(ctx->cq_extra) != ctx->cached_cq_tail; in req_need_defer()
1533 if (req_need_defer(de->req, de->seq)) in io_queue_deferred()
1544 u32 seq = ctx->cached_cq_tail - atomic_read(&ctx->cq_timeouts); in io_flush_timeouts() local
1562 events_got = seq - ctx->cq_last_tm_flush; in io_flush_timeouts()
1568 ctx->cq_last_tm_flush = seq; in io_flush_timeouts()
6749 u32 seq = req->ctx->cached_sq_head; in io_get_sequence() local
6753 seq--; in io_get_sequence()
6754 return seq; in io_get_sequence()
6763 u32 seq; in io_drain_req() local
6799 seq = io_get_sequence(req); in io_drain_req()
6801 if (!req_need_defer(req, seq) && list_empty_careful(&ctx->defer_list)) in io_drain_req()
6817 if (!req_need_defer(req, seq) && list_empty(&ctx->defer_list)) { in io_drain_req()
6826 de->seq = seq; in io_drain_req()