diff options
author | Pranith K <pranithk@gluster.com> | 2011-07-16 08:19:47 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-17 07:45:47 -0700 |
commit | b43038ee84839fa6b0e6aee037f7d952d8f52b6d (patch) | |
tree | c23569b60913169b8c9eea35f9e07081c72324d8 /xlators/cluster/afr/src/afr-self-heal-common.c | |
parent | 97807e75956a2d240282bc64fab1b71762de0546 (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-self-heal-common.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index d76e6c8de57..21134d9f711 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -2027,8 +2027,6 @@ afr_self_heal (call_frame_t *frame, xlator_t *this, inode_t *inode) GF_ASSERT (local->loc.path); - afr_set_lk_owner (frame, this); - if (local->self_heal.background) { LOCK (&priv->lock); { @@ -2052,6 +2050,8 @@ afr_self_heal (call_frame_t *frame, xlator_t *this, inode_t *inode) local->self_heal.need_entry_self_heal); sh_frame = copy_frame (frame); + afr_set_lk_owner (sh_frame, this); + sh_local = afr_local_copy (local, this); sh_frame->local = sh_local; sh = &sh_local->self_heal; |