summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-12-16 10:46:24 -0700
committerJens Axboe <axboe@fb.com>2014-12-16 10:46:24 -0700
commit965f0a41c6ded527fb5b9f499dfc2380d37dc291 (patch)
tree29ec6840804b4ba045371d630a0f81245816b615
parent0162683724850b047a4f2687e3946443080e2079 (diff)
downloadfio-965f0a41c6ded527fb5b9f499dfc2380d37dc291.tar.gz
fio-965f0a41c6ded527fb5b9f499dfc2380d37dc291.tar.bz2
engines/mmap: clear partial mmap flag on close
Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--engines/mmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mmap.c b/engines/mmap.c
index b938d6b7..8bcd42cc 100644
--- a/engines/mmap.c
+++ b/engines/mmap.c
@@ -247,6 +247,7 @@ static int fio_mmapio_close_file(struct thread_data *td, struct fio_file *f)
FILE_SET_ENG_DATA(f, NULL);
free(fmd);
+ fio_file_clear_partial_mmap(f);
return generic_close_file(td, f);
}