path: root/libglusterfs
diff options
authorAshish Pandey <>2016-03-04 13:05:09 +0530
committerPranith Kumar Karampuri <>2016-03-20 22:52:53 -0700
commit46920e3bd38d9ae7c1910d0bd83eff309ab20c66 (patch)
tree98f90cb213d94209d6e4546601ac7fc05f26e2f9 /libglusterfs
parentec89ddc8471d438f9ea45f9a4a779cd87c98666a (diff)
cluster/ec: Provide an option to enable/disable eager lock
Problem: If a fop takes lock, and completes its operation, it waits for 1 second before releasing the lock. However, If ec find any lock contention within this time period, it release the lock immediately before time expires. As we take lock on first brick, for few operations, like read, it might happen that discovery of lock contention might take long time and can degrades the performance. Solution: Provide an option to enable/disable eager lock. If eager lock is disabled, lock will be released as soon as fop completes. gluster v set <VOLUME NAME> disperse.eager-lock on gluster v set <VOLUME NAME> disperse.eager-lock off master- Change-Id: I000985a787eba3c190fdcd5981dfbf04e64af166 BUG: 1318965 Signed-off-by: Ashish Pandey <> Reviewed-on: Smoke: Gluster Build System <> CentOS-regression: Gluster Build System <> NetBSD-regression: NetBSD Build System <> Reviewed-by: Pranith Kumar Karampuri <>
Diffstat (limited to 'libglusterfs')
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/globals.h b/libglusterfs/src/globals.h
index be6a06b..9d2ca8d 100644
--- a/libglusterfs/src/globals.h
+++ b/libglusterfs/src/globals.h
@@ -61,6 +61,10 @@
#define GD_OP_VERSION_3_7_7 30707 /* Op-version for GlusterFS 3.7.7 */
+/* Op-version was not bumped up for 3.7.8 */
+#define GD_OP_VERSION_3_7_10 30710 /* Op-version for GlusterFS 3.7.10 */
#include "xlator.h"