summaryrefslogtreecommitdiff
path: root/src/include/liburing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/liburing.h')
-rw-r--r--src/include/liburing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/liburing.h b/src/include/liburing.h
index 74302e6..a2e8f94 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -297,7 +297,7 @@ static inline void io_uring_prep_link_timeout(struct io_uring_sqe *sqe,
static inline unsigned io_uring_sq_ready(struct io_uring *ring)
{
- return ring->sq.sqe_tail - ring->sq.sqe_head;
+ return *ring->sq.ktail - *ring->sq.khead;
}
static inline unsigned io_uring_sq_space_left(struct io_uring *ring)