X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=memory.c;h=5678350f79b2527e50f7f58bd0542fdab9e8e993;hp=c147229e27c67d4135bfe9c64be82f8dbe8e2c46;hb=b4c5e1acb5a7964f858e2b41c1ae07b1afc0f4ea;hpb=5a32012f174baf33978b041cffa36453f2d92947 diff --git a/memory.c b/memory.c index c147229e..5678350f 100644 --- 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)