Skip to content

Commit

Permalink
engines/libpmem: do not call drain on close
Browse files Browse the repository at this point in the history
no matter if direct was 1 or 0, it's not necessary.
It's either covered by non-temporal stores or it's not desired
by user (if 0 was set).

Signed-off-by: Łukasz Stolarczuk <[email protected]>
  • Loading branch information
lukaszstolarczuk committed Apr 13, 2021
1 parent 0e684e9 commit 94c0b97
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions engines/libpmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,6 @@ static int fio_libpmem_close_file(struct thread_data *td, struct fio_file *f)
int ret = 0;

dprint(FD_IO, "DEBUG fio_libpmem_close_file\n");
dprint(FD_IO, "td->o.odirect %d\n", td->o.odirect);

if (!td->o.odirect) {
dprint(FD_IO,"pmem_drain\n");
pmem_drain();
}

if (fdd->libpmem_ptr)
ret = pmem_unmap(fdd->libpmem_ptr, fdd->libpmem_sz);
Expand Down

0 comments on commit 94c0b97

Please sign in to comment.