engines/libpmem: do not call drain on close
authorŁukasz Stolarczuk <lukasz.stolarczuk@intel.com>
Thu, 14 Jan 2021 17:19:43 +0000 (18:19 +0100)
committerŁukasz Stolarczuk <lukasz.stolarczuk@intel.com>
Tue, 13 Apr 2021 08:07:02 +0000 (10:07 +0200)
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 <lukasz.stolarczuk@intel.com>
engines/libpmem.c

index 3502911257e70e8d9afef63eb280e1999859f04a..ab29a45383b5fe70ccb9a7334cbb3cf14472b78b 100644 (file)
@@ -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);