projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cea0b7c
)
File reset should clear random map as well
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 7 Apr 2009 11:06:43 +0000
(13:06 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 7 Apr 2009 11:06:43 +0000
(13:06 +0200)
Fixes infinite loop on time based runs, where it repeatedly
fails getting a new offset.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.h
patch
|
blob
|
blame
|
history
diff --git
a/fio.h
b/fio.h
index a9e2e3bb6443f9e224da6653e338fd80f3d36241..4077a5bed30647d9c0cc9ef8a135246b0eebca47 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-1033,6
+1033,8
@@
static inline void fio_file_reset(struct fio_file *f)
{
f->last_free_lookup = 0;
f->last_pos = f->file_offset;
+ if (f->file_map)
+ memset(f->file_map, 0, f->num_maps * sizeof(int));
}
static inline void clear_error(struct thread_data *td)