diff options
author | Pavan Sondur <pavan@gluster.com> | 2010-06-28 14:10:36 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-06-29 02:58:04 -0700 |
commit | da1123b9d87db1642883336e990ff393ae0fcc50 (patch) | |
tree | 4be4c8913c3c41635ccfddfabe280c6f1946ecda /xlators/cluster/afr/src/afr-self-heal-common.c | |
parent | 907f9f95a21f21aab7269268c85c3ab65bb7224b (diff) |
cluster/afr: Set lk-owner to pid when fuse does not supply it.v3.0.5rc7
Use the frame->root address as lk-owner when FUSE does
not supply lk_owner.
Raghu,
I unit tested this patch with dbench and self heal tests.
Did not observe lk-owner=0 in any server logs. Can you
verify this patch with the other tests you had run today?
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1032 (Set lock-owner with pid when fuse does not supply value)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1032
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index d22bea68c78..967173146fd 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -1536,6 +1536,8 @@ afr_self_heal (call_frame_t *frame, xlator_t *this) local = frame->local; priv = this->private; + afr_set_lk_owner (frame, this); + if (local->self_heal.background) { LOCK (&priv->lock); { |