engines/mmap: clear partial mmap flag on close
authorJens Axboe <axboe@fb.com>
Tue, 16 Dec 2014 17:46:24 +0000 (10:46 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 16 Dec 2014 17:46:24 +0000 (10:46 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/mmap.c

index b938d6b70f20c5817530891ed470bb67fddf8c65..8bcd42ccd3892a237a09fa8ce04e6bee14e96474 100644 (file)
@@ -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);
 
        FILE_SET_ENG_DATA(f, NULL);
        free(fmd);
+       fio_file_clear_partial_mmap(f);
 
        return generic_close_file(td, f);
 }
 
        return generic_close_file(td, f);
 }