From 94c0b971d5e535e6b991899a57f88b6512412e58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stolarczuk?= Date: Thu, 14 Jan 2021 18:19:43 +0100 Subject: [PATCH] engines/libpmem: do not call drain on close MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- engines/libpmem.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/engines/libpmem.c b/engines/libpmem.c index 35029112..ab29a453 100644 --- a/engines/libpmem.c +++ b/engines/libpmem.c @@ -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); -- 2.25.1