syslet: make sure ring buffer is a power-of-2
[fio.git] / memory.c
index c147229e27c67d4135bfe9c64be82f8dbe8e2c46..5678350f79b2527e50f7f58bd0542fdab9e8e993 100644 (file)
--- a/memory.c
+++ b/memory.c
@@ -145,6 +145,9 @@ int allocate_io_mem(struct thread_data *td)
 {
        int ret = 0;
 
+       if (td->io_ops->flags & FIO_NOIO)
+               return 0;
+
        if (td->o.mem_type == MEM_MALLOC)
                ret = alloc_mem_malloc(td);
        else if (td->o.mem_type == MEM_SHM || td->o.mem_type == MEM_SHMHUGE)