Add option to skip delays when replaying traces
[fio.git] / blktrace.c
index 68ba964a3a363c6f5e85ac19e5410134e1943238..6cf8d461fb0aea44bc292eccc2b983747f5a5432 100644 (file)
@@ -341,8 +341,16 @@ int load_blktrace(struct thread_data *td, const char *filename)
                                delay = t.time - ttime;
                        if ((t.action & BLK_TC_ACT(BLK_TC_WRITE)) && read_only)
                                skipped_writes++;
-                       else
+                       else {
+                               /*
+                                * set delay to zero if no_stall enabled for
+                                * fast replay
+                                */
+                               if (td->o.no_stall)
+                                       delay = 0;
+
                                handle_trace(td, &t, delay, ios, rw_bs);
+                       }
 
                        ttime = t.time;
                        cpu = t.cpu;