projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
flist: add flist_last_entry()
[fio.git]
/
filehash.c
diff --git
a/filehash.c
b/filehash.c
index c6ebe761282edd5ef645042c2bbed7f8ff98792c..0d61f54cca0b2f8c526cd639f9749716069aa8ff 100644
(file)
--- a/
filehash.c
+++ b/
filehash.c
@@
-21,12
+21,14
@@
static unsigned short hash(const char *name)
void fio_file_hash_lock(void)
{
void fio_file_hash_lock(void)
{
- fio_mutex_down(hash_lock);
+ if (hash_lock)
+ fio_mutex_down(hash_lock);
}
void fio_file_hash_unlock(void)
{
}
void fio_file_hash_unlock(void)
{
- fio_mutex_up(hash_lock);
+ if (hash_lock)
+ fio_mutex_up(hash_lock);
}
void remove_file_hash(struct fio_file *f)
}
void remove_file_hash(struct fio_file *f)