X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.h;h=2103151d9b42b3b318cb16d4e3519bc6ed354da1;hp=53bcda1315f9b88858e6cf2f41b37b03b4380bd5;hb=01fe773df4bc4a35450ce3ef50c8075b3bf55cd0;hpb=2048d33fe36bf46f91785e8010f65d875501d410 diff --git a/fio.h b/fio.h index 53bcda13..2103151d 100644 --- a/fio.h +++ b/fio.h @@ -245,7 +245,7 @@ struct thread_data { void *iolog_buf; FILE *iolog_f; - unsigned long rand_seeds[FIO_RAND_NR_OFFS]; + uint64_t rand_seeds[FIO_RAND_NR_OFFS]; struct frand_state bsrange_state[DDIR_RWDIR_CNT]; struct frand_state verify_state; @@ -772,6 +772,11 @@ static inline bool td_async_processing(struct thread_data *td) return (td->flags & TD_F_NEED_LOCK) != 0; } +static inline bool td_offload_overlap(struct thread_data *td) +{ + return td->o.serialize_overlap && td->o.io_submit_mode == IO_MODE_OFFLOAD; +} + /* * We currently only need to do locking if we have verifier threads * accessing our internal structures too @@ -852,4 +857,7 @@ enum { extern void exec_trigger(const char *); extern void check_trigger_file(void); +extern bool in_flight_overlap(struct io_u_queue *q, struct io_u *io_u); +extern pthread_mutex_t overlap_check; + #endif