[PATCH] Add support for read/write mixed io
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index a183d72d09bf8bb14b811338e5f07476f140ed11..37dabae1ec0af62c7718332706b0a9041336ae94 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -115,6 +115,7 @@ struct thread_data {
        volatile int runstate;
        volatile int old_runstate;
        unsigned int ddir;
+       unsigned int iomix;
        unsigned int ioprio;
        unsigned int sequential;
        unsigned int bs;
@@ -276,6 +277,7 @@ enum {
 
 #define td_read(td)            ((td)->ddir == DDIR_READ)
 #define td_write(td)           ((td)->ddir == DDIR_WRITE)
+#define td_rw(td)              ((td)->iomix != 0)
 
 #define BLOCKS_PER_MAP         (8 * sizeof(long))
 #define TO_MAP_BLOCK(td, b)    ((b) - ((td)->file_offset / (td)->min_bs))