path: root/xlators/cluster/afr/src/afr.h
diff options
authorVikas Gorur <>2009-10-30 05:58:01 +0000
committerAnand V. Avati <>2009-10-30 04:30:59 -0700
commite4548d105538182ee3e2be72d9ceb11df18610fd (patch)
tree7ca02c6a38005a3f6b056e9fd6b6fb9eab34ebe1 /xlators/cluster/afr/src/afr.h
parentf01aa2aa7487cdb3198fb7749d2fbf25d41ad1e6 (diff)
cluster/afr: Don't try to self-heal if there are locks held
If the inodelk_count or entrylk_count is positive on a file/directory, don't try to do self-heal on it. Signed-off-by: Vikas Gorur <> Signed-off-by: Anand V. Avati <> BUG: 326 ([2.0.8rc9] Spurious self-heal) URL:
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h
index fff53e569..dfdaf28c7 100644
--- a/xlators/cluster/afr/src/afr.h
+++ b/xlators/cluster/afr/src/afr.h
@@ -170,6 +170,9 @@ typedef struct _afr_local {
dict_t *xattr_req;
int open_fd_count;
+ int32_t inodelk_count;
+ int32_t entrylk_count;
This struct contains the arguments for the "continuation"
(scheme-like) of fops