summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-11-22 22:18:07 -0700
committerJens Axboe <axboe@kernel.dk>2019-11-22 22:18:07 -0700
commit514acf956ee80594481402e3c8470f8eec5d3b89 (patch)
tree662b0d5011d376330cc31c09266417752b502a80
parentb60697c51cb2cdea4fb287686cd1ceb0890e6dee (diff)
downloadliburing-514acf956ee80594481402e3c8470f8eec5d3b89.tar.gz
liburing-514acf956ee80594481402e3c8470f8eec5d3b89.tar.bz2
Revert "Fix io_uring_sq_ready()"
On second thought, let's keep this function as it is, as it's meant to be used on the liburing SQ ring state, not the kernel side. We'll fix this differently internally in liburing. This reverts commit c5bc0ed798e0e79b343b5e438373e71819e6937f.
-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 a977cef..70bb007 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.ktail - *ring->sq.khead;
+ return ring->sq.sqe_tail - ring->sq.sqe_head;
}
static inline unsigned io_uring_sq_space_left(struct io_uring *ring)