* started the overlap check because the IO_U_F_FLIGHT
* flag is now set
*/
- if (io_u->flags & IO_U_F_OVERLAP_LOCK) {
+ if (td_offload_overlap(td)) {
int res = pthread_mutex_unlock(&overlap_check);
assert(res == 0);
- io_u_clear(td, io_u, IO_U_F_OVERLAP_LOCK);
}
assert(fio_file_open(io_u->file));
flags = POSIX_FADV_RANDOM;
else if (td->o.fadvise_hint == F_ADV_SEQUENTIAL)
flags = POSIX_FADV_SEQUENTIAL;
+#ifdef POSIX_FADV_NOREUSE
+ else if (td->o.fadvise_hint == F_ADV_NOREUSE)
+ flags = POSIX_FADV_NOREUSE;
+#endif
else {
log_err("fio: unknown fadvise type %d\n",
td->o.fadvise_hint);