summaryrefslogtreecommitdiff
path: root/io_u_queue.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-03-19 22:15:02 -0600
committerJens Axboe <axboe@fb.com>2015-03-19 22:25:35 -0600
commit6fb1bda0d0b61e2433f9ef34b4b979b2642d8706 (patch)
tree746056b99f3d0589c76dc93199ee858f25a01ecd /io_u_queue.c
parentd8f1f7d4ef536ea04a6a5fbd0399d46f69ff4e60 (diff)
downloadfio-6fb1bda0d0b61e2433f9ef34b4b979b2642d8706.tar.gz
fio-6fb1bda0d0b61e2433f9ef34b4b979b2642d8706.tar.bz2
io_u_queue: add debug assert check on adding too many elements
Caught a bug in the io-threads branch, lets merge it into master. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'io_u_queue.c')
-rw-r--r--io_u_queue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_u_queue.c b/io_u_queue.c
index 80a32ba3..9994c787 100644
--- a/io_u_queue.c
+++ b/io_u_queue.c
@@ -8,6 +8,7 @@ int io_u_qinit(struct io_u_queue *q, unsigned int nr)
return 1;
q->nr = 0;
+ q->max = nr;
return 0;
}