Move thread options into a seperate structure
[fio.git] / os-linux.h
index d3b2e931e8b754eaecfd06af87748225d5e168b9..1ed3d3b650b206921c0c22a5b1e3c656820d228e 100644 (file)
@@ -32,7 +32,7 @@ typedef struct drand48_data os_random_state_t;
        posix_fadvise((fd), (off_t)(off), (len), (advice))
 
 #define fio_setaffinity(td)            \
-       sched_setaffinity((td)->pid, sizeof((td)->cpumask), &(td)->cpumask)
+       sched_setaffinity((td)->pid, sizeof((td)->o.cpumask), &(td)->o.cpumask)
 #define fio_getaffinity(pid, ptr)      \
        sched_getaffinity((pid), sizeof(cpu_set_t), (ptr))