[PATCH] Random map block coverage
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index 8acc0c3941783aa0ffb858d255c9b15d2d8cba8f..18e3c3f1c5b9d08d40e4b3b40876b8a36e6a8e4d 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -55,7 +55,7 @@ static void mark_random_map(struct thread_data *td, struct io_u *io_u)
                 * If we have a mixed random workload, we may
                 * encounter blocks we already did IO to.
                 */
-               if (!td->o.ddir_nr && !random_map_free(td, f, block))
+               if (!td->o.ddir_nr == 1 && !random_map_free(td, f, block))
                        break;
 
                idx = RAND_MAP_IDX(td, f, block);