summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-lk-common.c
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2011-07-16 08:19:47 +0000
committerAnand Avati <avati@gluster.com>2011-07-17 07:45:47 -0700
commitb43038ee84839fa6b0e6aee037f7d952d8f52b6d (patch)
treec23569b60913169b8c9eea35f9e07081c72324d8 /xlators/cluster/afr/src/afr-lk-common.c
parent97807e75956a2d240282bc64fab1b71762de0546 (diff)
cluster/afr: Don't depend on fuse lk_owner for inodelks
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3182 (Afr self-heal should happen with out big lock) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3182
Diffstat (limited to 'xlators/cluster/afr/src/afr-lk-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-lk-common.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/xlators/cluster/afr/src/afr-lk-common.c b/xlators/cluster/afr/src/afr-lk-common.c
index 4b1aa6c7c29..fc54682d10c 100644
--- a/xlators/cluster/afr/src/afr-lk-common.c
+++ b/xlators/cluster/afr/src/afr-lk-common.c
@@ -59,12 +59,10 @@ afr_set_lock_number (call_frame_t *frame, xlator_t *this)
void
afr_set_lk_owner (call_frame_t *frame, xlator_t *this)
{
- if (!frame->root->lk_owner) {
- gf_log (this->name, GF_LOG_TRACE,
- "Setting lk-owner=%llu",
- (unsigned long long) (unsigned long)frame->root);
- frame->root->lk_owner = (uint64_t) (unsigned long)frame->root;
- }
+ gf_log (this->name, GF_LOG_TRACE,
+ "Setting lk-owner=%llu",
+ (unsigned long long) (unsigned long)frame->root);
+ frame->root->lk_owner = (uint64_t) (unsigned long)frame->root;
}
static int