summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-02-15 10:43:03 -0700
committerJens Axboe <axboe@kernel.dk>2019-02-15 10:43:03 -0700
commit5b5e6fe360affed9af8cd6c31cae26ff40a3c7f0 (patch)
tree7be1b8b1cc3e2b674030ea7073f285d3716b4001 /src
parent10a57a0823789e7fb76f26073edc37200aa356d9 (diff)
src/queue: kill bogus ktail_next == head check
This really wants to be a "will we over-fill the ring?" kind of check, but the sqe_head/sqe_tail should not be that far apart. If they are, that's a bug elsewhere. So just kill the check. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src')
-rw-r--r--src/queue.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/queue.c b/src/queue.c
index d508099..76e6edc 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -104,8 +104,6 @@ int io_uring_submit(struct io_uring *ring)
while (sq->sqe_head < sq->sqe_tail) {
ktail_next++;
read_barrier();
- if (ktail_next == *sq->khead)
- break;
sq->array[ktail & mask] = sq->sqe_head & mask;
ktail = ktail_next;