Lines Matching refs:file_lock_mode
1314 td->o.file_lock_mode = FILE_LOCK_NONE; in close_and_free_files()
1483 if (td->o.file_lock_mode != FILE_LOCK_NONE) { in add_file()
1508 switch (td->o.file_lock_mode) { in add_file()
1518 log_err("fio: unknown lock mode: %d\n", td->o.file_lock_mode); in add_file()
1592 if (!f->lock || td->o.file_lock_mode == FILE_LOCK_NONE) in lock_file()
1595 if (td->o.file_lock_mode == FILE_LOCK_READWRITE) { in lock_file()
1600 } else if (td->o.file_lock_mode == FILE_LOCK_EXCLUSIVE) in lock_file()
1603 td->file_locks[f->fileno] = td->o.file_lock_mode; in lock_file()
1608 if (!f->lock || td->o.file_lock_mode == FILE_LOCK_NONE) in unlock_file()
1611 if (td->o.file_lock_mode == FILE_LOCK_READWRITE) in unlock_file()
1613 else if (td->o.file_lock_mode == FILE_LOCK_EXCLUSIVE) in unlock_file()
1621 if (td->o.file_lock_mode == FILE_LOCK_NONE || !td->file_locks) in unlock_file_all()
1697 if (td->o.file_lock_mode != FILE_LOCK_NONE) in dup_files()
1713 if (td->o.file_lock_mode == FILE_LOCK_EXCLUSIVE) in dup_files()
1715 else if (td->o.file_lock_mode == FILE_LOCK_READWRITE) in dup_files()