about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-12-08 00:08:10 +0000
committerEric Wong <normalperson@yhbt.net>2012-12-08 00:13:15 +0000
commitfccc4848f787ec124f88a8ec4ab0198e65897b85 (patch)
tree352ba0150b6be0581c4056bfa8320b954438f762
parentf609618b6854ea55270161008e248d9016214da3 (diff)
downloadcmogstored-fccc4848f787ec124f88a8ec4ab0198e65897b85.tar.gz
Fine-grained locking of mount entries makes sense in the
presence of unpredictable network filesystems.
-rw-r--r--mnt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mnt.c b/mnt.c
index 0aa5bac..94ffbbd 100644
--- a/mnt.c
+++ b/mnt.c
@@ -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 */