projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
posixaio: speedup by using aio_suspend() instead of manual waiting
[fio.git]
/
engines
/
cpu.c
diff --git
a/engines/cpu.c
b/engines/cpu.c
index cfdf281d1b2ede15ecb7aea920af4eca3bb3b0d1..c8eb6b30bf286e03c2a41d712d32e032eb51aa18 100644
(file)
--- a/
engines/cpu.c
+++ b/
engines/cpu.c
@@
-13,17
+13,6
@@
static int fio_cpuio_queue(struct thread_data *td, struct io_u fio_unused *io_u)
return FIO_Q_COMPLETED;
}
return FIO_Q_COMPLETED;
}
-static int fio_cpuio_setup(struct thread_data fio_unused *td)
-{
- struct fio_file *f;
- unsigned int i;
-
- for_each_file(td, f, i)
- f->real_file_size = -1ULL;
-
- return 0;
-}
-
static int fio_cpuio_init(struct thread_data *td)
{
struct thread_options *o = &td->o;
static int fio_cpuio_init(struct thread_data *td)
{
struct thread_options *o = &td->o;
@@
-47,9
+36,9
@@
static int fio_cpuio_init(struct thread_data *td)
return 0;
}
return 0;
}
-static int fio_cpuio_open(struct thread_data fio_unused *td, struct fio_file *f)
+static int fio_cpuio_open(struct thread_data fio_unused *td,
+ struct fio_file fio_unused *f)
{
{
- f->fd = 0;
return 0;
}
return 0;
}
@@
-58,9
+47,8
@@
static struct ioengine_ops ioengine = {
.version = FIO_IOOPS_VERSION,
.queue = fio_cpuio_queue,
.init = fio_cpuio_init,
.version = FIO_IOOPS_VERSION,
.queue = fio_cpuio_queue,
.init = fio_cpuio_init,
- .setup = fio_cpuio_setup,
.open_file = fio_cpuio_open,
.open_file = fio_cpuio_open,
- .flags = FIO_SYNCIO | FIO_DISKLESSIO,
+ .flags = FIO_SYNCIO | FIO_DISKLESSIO
| FIO_NOIO
,
};
static void fio_init fio_cpuio_register(void)
};
static void fio_init fio_cpuio_register(void)