X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.h;h=b3ba5db2e95ac9e16cd0633bc8912b125c08e333;hp=e394e165078a4fa3da53d397cae2791e8e9fe195;hb=e9d4aa0736f962cb9d302017e25e6b9be4c99686;hpb=c06379a65d467bdcc782d7e1aa067e6391cd5a68 diff --git a/fio.h b/fio.h index e394e165..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