X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=io_u.c;h=945aa19288bdc333c0d7a5e6087c54813ea420d3;hb=7ceefc0914b9ff721047b4dc8be54625d43f577c;hp=633f6175170f4c88004c71fa14e756cf55d22480;hpb=f31feaa21642929b6d9d5396b73669372fda9a0a;p=fio.git diff --git a/io_u.c b/io_u.c index 633f6175..945aa192 100644 --- a/io_u.c +++ b/io_u.c @@ -325,9 +325,9 @@ static int get_next_rand_block(struct thread_data *td, struct fio_file *f, if (td->o.time_based || (td->o.file_service_type & __FIO_FSERVICE_NONUNIFORM)) { fio_file_reset(td, f); + loop_cache_invalidate(td, f); if (!get_next_rand_offset(td, f, ddir, b)) return 0; - loop_cache_invalidate(td, f); } dprint(FD_IO, "%s: rand offset failed, last=%llu, size=%llu\n", @@ -610,11 +610,8 @@ int io_u_quiesce(struct thread_data *td) * io's that have been actually submitted to an async engine, * and cur_depth is meaningless for sync engines. */ - if (td->io_u_queued || td->cur_depth) { - int fio_unused ret; - - ret = td_io_commit(td); - } + if (td->io_u_queued || td->cur_depth) + td_io_commit(td); while (td->io_u_in_flight) { int ret;