X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.h;h=ffd3d7d00a1252cc60ca1280269977a7f1f2b36e;hp=fe1a227d317649f52398565881edbce715e7c998;hb=65864cf7c951a79c02b1d1f358f0eb5d25a9aff5;hpb=392a374205d9e90fe4b4b6419fefa493f0a5ccc2 diff --git a/fio.h b/fio.h index fe1a227d..ffd3d7d0 100644 --- a/fio.h +++ b/fio.h @@ -22,6 +22,7 @@ #include "arch/arch.h" #include "os/os.h" #include "mutex.h" +#include "sem.h" #include "log.h" #include "debug.h" @@ -309,6 +310,13 @@ struct fio_file { unsigned long long last_pos; + /* + * if io is protected by a semaphore, this is set + */ + struct fio_sem *sem; + void *sem_owner; + unsigned int sem_batch; + /* * block map for random io */ @@ -407,6 +415,8 @@ struct thread_options { unsigned int nr_files; unsigned int open_files; + unsigned int lockfile; + unsigned int lockfile_batch; unsigned int odirect; unsigned int invalidate_cache;