diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-12-08 00:08:10 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-12-08 00:13:15 +0000 |
commit | fccc4848f787ec124f88a8ec4ab0198e65897b85 (patch) | |
tree | 352ba0150b6be0581c4056bfa8320b954438f762 | |
parent | f609618b6854ea55270161008e248d9016214da3 (diff) | |
download | cmogstored-fccc4848f787ec124f88a8ec4ab0198e65897b85.tar.gz |
Fine-grained locking of mount entries makes sense in the presence of unpredictable network filesystems.
-rw-r--r-- | mnt.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -8,6 +8,10 @@ */ #include "cmogstored.h" +/* + * TODO: implement fine-grained locking since some network filesystems + * can take a long time to stat() + */ static pthread_mutex_t mnt_lock = PTHREAD_MUTEX_INITIALIZER; /* global for the process */ static Hash_table *by_dev; /* maps (system) device IDs to a mount_entry */ |