summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-10-25 18:44:45 +0200
committerJens Axboe <jens.axboe@oracle.com>2007-10-25 18:44:45 +0200
commitb4c5e1acb5a7964f858e2b41c1ae07b1afc0f4ea (patch)
tree50b965309a09302a9425b1cb43ba1cd9272fce4c /memory.c
parent5a32012f174baf33978b041cffa36453f2d92947 (diff)
downloadfio-b4c5e1acb5a7964f858e2b41c1ae07b1afc0f4ea.tar.gz
fio-b4c5e1acb5a7964f858e2b41c1ae07b1afc0f4ea.tar.bz2
More cpu engine fixes
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c3
1 files changed, 3 insertions, 0 deletions
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)