d1681e
From 3e0fa14847b089291f4ca990d43029c1cd77a232 Mon Sep 17 00:00:00 2001
d1681e
From: Vijay Bellur <vbellur@redhat.com>
d1681e
Date: Thu, 31 May 2018 17:11:01 -0700
d1681e
Subject: [PATCH 294/305] features/shard: Fix missing unlock in
d1681e
 shard_fsync_shards_cbk()
d1681e
d1681e
updates: bz#789278
d1681e
d1681e
> Upstream: https://review.gluster.org/20118
d1681e
> BUG: 789278
d1681e
> Change-Id: I745a98e957cf3c6ba69247fcf6b58dd05cf59c3c
d1681e
d1681e
Change-Id: I745a98e957cf3c6ba69247fcf6b58dd05cf59c3c
d1681e
BUG: 1493085
d1681e
Signed-off-by: Vijay Bellur <vbellur@redhat.com>
d1681e
Reviewed-on: https://code.engineering.redhat.com/gerrit/140462
d1681e
Tested-by: Krutika Dhananjay <kdhananj@redhat.com>
d1681e
Tested-by: RHGS Build Bot <nigelb@redhat.com>
d1681e
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
d1681e
---
d1681e
 xlators/features/shard/src/shard.c | 1 +
d1681e
 1 file changed, 1 insertion(+)
d1681e
d1681e
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
d1681e
index 29989d3..d67cdf4 100644
d1681e
--- a/xlators/features/shard/src/shard.c
d1681e
+++ b/xlators/features/shard/src/shard.c
d1681e
@@ -4504,6 +4504,7 @@ shard_fsync_shards_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
d1681e
                 if (op_ret < 0) {
d1681e
                         local->op_ret = op_ret;
d1681e
                         local->op_errno = op_errno;
d1681e
+                        UNLOCK (&frame->lock);
d1681e
                         goto out;
d1681e
                 }
d1681e
                 shard_inode_ctx_set (local->fd->inode, this, postbuf, 0,
d1681e
-- 
d1681e
1.8.3.1
d1681e