projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6683745
)
Always fsync if asked to
author
Jens Axboe
<axboe@kernel.dk>
Sat, 26 Jan 2013 16:28:23 +0000
(09:28 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Sat, 26 Jan 2013 16:28:23 +0000
(09:28 -0700)
Currently we don't fsync() is direct IO is issued. But if the
user asked for fsync(), he should get an fsync. So remove this
restriction.
Reported-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fio.h
patch
|
blob
|
blame
|
history
diff --git
a/fio.h
b/fio.h
index 3a263351774ead3dd95ecf6c5d16f1ea931be805..9e202996997bec070bfa01ffcc413210735ea5f3 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-655,8
+655,6
@@
static inline int should_fsync(struct thread_data *td)
{
if (td->last_was_sync)
return 0;
- if (td->o.odirect)
- return 0;
if (td_write(td) || td_rw(td) || td->o.override_sync)
return 1;