[PATCH cpu io threads need not have lots of stuff setup
Everything that has to do with io can be skipped.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c
index 234822e..81e9e90 100644
--- a/fio.c
+++ b/fio.c
@@ -518,6 +518,9 @@
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+");
diff --git a/init.c b/init.c
index f27fdf1..b0c35f1 100644
--- a/init.c
+++ b/init.c
@@ -604,6 +604,9 @@
int fd, num_maps, blocks, i;
struct fio_file *f;
+ if (td->io_ops->flags & FIO_CPUIO)
+ return 0;
+
fd = open("/dev/urandom", O_RDONLY);
if (fd == -1) {
td_verror(td, errno);
diff --git a/log.c b/log.c
index 1343556..b151164 100644
--- a/log.c
+++ b/log.c
@@ -172,6 +172,9 @@
{
int ret = 0;
+ if (td->io_ops->flags & FIO_CPUIO)
+ return 0;
+
if (td->read_iolog_file)
ret = init_iolog_read(td);
else if (td->write_iolog_file)