Lines Matching refs:file_lock_mode
1124 td->o.file_lock_mode = FILE_LOCK_NONE; in close_and_free_files()
1267 if (td->o.file_lock_mode != FILE_LOCK_NONE) { in add_file()
1294 switch (td->o.file_lock_mode) { in add_file()
1304 log_err("fio: unknown lock mode: %d\n", td->o.file_lock_mode); in add_file()
1378 if (!f->lock || td->o.file_lock_mode == FILE_LOCK_NONE) in lock_file()
1381 if (td->o.file_lock_mode == FILE_LOCK_READWRITE) { in lock_file()
1386 } else if (td->o.file_lock_mode == FILE_LOCK_EXCLUSIVE) in lock_file()
1389 td->file_locks[f->fileno] = td->o.file_lock_mode; in lock_file()
1394 if (!f->lock || td->o.file_lock_mode == FILE_LOCK_NONE) in unlock_file()
1397 if (td->o.file_lock_mode == FILE_LOCK_READWRITE) in unlock_file()
1399 else if (td->o.file_lock_mode == FILE_LOCK_EXCLUSIVE) in unlock_file()
1407 if (td->o.file_lock_mode == FILE_LOCK_NONE || !td->file_locks) in unlock_file_all()
1483 if (td->o.file_lock_mode != FILE_LOCK_NONE) in dup_files()
1501 if (td->o.file_lock_mode == FILE_LOCK_EXCLUSIVE) in dup_files()
1503 else if (td->o.file_lock_mode == FILE_LOCK_READWRITE) in dup_files()