Add LICENSE to Windows installer, fix filename extensions and update URL.
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index 6ae3eae817782bd2d82c408b7b74f6dec6d59cf2..1013c7fd0aeaa515b41cd2465272f0ecda4514ae 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -497,7 +497,7 @@ static enum fio_ddir rate_ddir(struct thread_data *td, enum fio_ddir ddir)
         * We have too much pending sleep in this direction. See if we
         * should switch.
         */
-       if (td_rw(td)) {
+       if (td_rw(td) && td->o.rwmix[odir]) {
                /*
                 * Other direction does not have too much pending, switch
                 */
@@ -545,6 +545,7 @@ static enum fio_ddir rate_ddir(struct thread_data *td, enum fio_ddir ddir)
 
        if (ddir_trim(ddir))
                return ddir;
+
        return ddir;
 }