diff options
author | Jens Axboe <axboe@kernel.dk> | 2013-08-09 12:53:44 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-08-09 12:53:44 -0600 |
commit | ddf24e42b5f801e6a66f8976c97edcb88080ecdf (patch) | |
tree | 8e9c84664613e121e79b0cfdc8eda288df267ff9 /io_u.c | |
parent | d2d982d3c510e23a4344b24ba1a29b5c6f0fbaa0 (diff) | |
download | fio-ddf24e42b5f801e6a66f8976c97edcb88080ecdf.tar.gz |
Add number_ios= option
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_u.c')
-rw-r--r-- | io_u.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1413,6 +1413,9 @@ static void account_io_completion(struct thread_data *td, struct io_u *io_u, add_bw_sample(td, idx, bytes, &icd->time); add_iops_sample(td, idx, bytes, &icd->time); + + if (td->o.number_ios && !--td->o.number_ios) + td->done = 1; } static long long usec_for_io(struct thread_data *td, enum fio_ddir ddir) |