Moving fsync pmdk functionalty from persist to drain on the advice of the PMDK developers
parent
339bb200c8
commit
9c0926ef2a
|
@ -106,6 +106,7 @@ static void *PMDK_Create(char * testFileName, IOR_param_t * param){
|
|||
}
|
||||
|
||||
|
||||
|
||||
return((void *)pmemaddr);
|
||||
} /* PMDK_Create() */
|
||||
|
||||
|
@ -184,9 +185,7 @@ static IOR_offset_t PMDK_Xfer(int access, void *file, IOR_size_t * buffer,
|
|||
|
||||
static void PMDK_Fsync(void *fd, IOR_param_t * param)
|
||||
{
|
||||
size_t open_length;
|
||||
open_length = param->transferSize;
|
||||
pmem_persist(&fd, open_length);
|
||||
pmem_drain();
|
||||
} /* PMDK_Fsync() */
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue