extend --sync to allow {sync,dsync,0,1}, to support O_DSYNC
[fio.git] / engines / libpmem.c
index a9b3e29be662e208bd1578eb0209a3e4316ebfac..eefb7767f3eab953f202236a395b096ef8f67636 100644 (file)
@@ -193,6 +193,7 @@ static enum fio_q_status fio_libpmem_queue(struct thread_data *td,
 
        dprint(FD_IO, "DEBUG fio_libpmem_queue\n");
        dprint(FD_IO,"td->o.odirect %d td->o.sync_io %d \n",td->o.odirect, td->o.sync_io);
+       /* map both O_SYNC / DSYNC to not using NODRAIN */
        flags = td->o.sync_io ? 0 : PMEM_F_MEM_NODRAIN;
        flags |= td->o.odirect ? PMEM_F_MEM_NONTEMPORAL : PMEM_F_MEM_TEMPORAL;