X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.h;h=b3ba5db2e95ac9e16cd0633bc8912b125c08e333;hp=53bcda1315f9b88858e6cf2f41b37b03b4380bd5;hb=919850d217e139b4f82f9798893cc816a7435e44;hpb=5857e8e0f53e81bd7096209fe5cabf91ce74b853 diff --git a/fio.h b/fio.h index 53bcda13..b3ba5db2 100644 --- a/fio.h +++ b/fio.h @@ -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