commit | 9a20162c2095b7e33c673e1f5c7df9b57a18ace1 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Feb 07 07:42:18 2012 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Feb 07 07:42:18 2012 +0100 |
tree | be83c28b9960fbc52975ddfa219c519cbbb05cf3 | |
parent | 0c4ce7ce9ce7fa0d644020816feefdf9c3a64a4e [diff] | |
parent | ecc35cf45f60e658856c6f0cbd5b7785753981bb [diff] |
Merge branch 'master' of ssh://brick.kernel.dk/data/git/fio
diff --git a/io_u.c b/io_u.c index 54f8685..8a03348 100644 --- a/io_u.c +++ b/io_u.c
@@ -377,6 +377,12 @@ if (minbs == maxbs) return minbs; + /* + * If we can't satisfy the min block size from here, then fail + */ + if (!io_u_fits(td, io_u, minbs)) + return 0; + if (td->o.use_os_rand) rand_max = OS_RAND_MAX; else