[PATCH cpu io threads need not have lots of stuff setup
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 234822ee8ecfe9cc7099417af563cbd3aee92277..81e9e90d6ae154477354dbe17ce11637cb65d2c5 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -518,6 +518,9 @@ static int switch_ioscheduler(struct thread_data *td)
        FILE *f;
        int ret;
 
+       if (td->io_ops->flags & FIO_CPUIO)
+               return 0;
+
        sprintf(tmp, "%s/queue/scheduler", td->sysfs_root);
 
        f = fopen(tmp, "r+");