summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2018-05-31 17:11:01 -0700
committerKrutika Dhananjay <kdhananj@redhat.com>2018-06-06 14:00:52 +0000
commit9757ee891cf45abd6380fd693639f5c4cd199c2f (patch)
treed0607f5fae3094b576f2ed43334edbb9c247663b
parent4f591e873c0a38b662910f8e8a5768fd3e9bbeaa (diff)
features/shard: Fix missing unlock in shard_fsync_shards_cbk()
Backport of: > Change-Id: I745a98e957cf3c6ba69247fcf6b58dd05cf59c3c > Signed-off-by: Vijay Bellur <vbellur@redhat.com> > (cherry picked from commit b21f742f96d46b4adfa87281dd9a2e48fea8d031) > BUG: 789278 Change-Id: I745a98e957cf3c6ba69247fcf6b58dd05cf59c3c fixes: bz#1587908 Signed-off-by: Vijay Bellur <vbellur@redhat.com> (cherry picked from commit b21f742f96d46b4adfa87281dd9a2e48fea8d031)
-rw-r--r--xlators/features/shard/src/shard.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index 9578dabca44..5d493e5e675 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -4668,6 +4668,7 @@ shard_fsync_shards_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
if (op_ret < 0) {
local->op_ret = op_ret;
local->op_errno = op_errno;
+ UNLOCK (&frame->lock);
goto out;
}
shard_inode_ctx_set (local->fd->inode, this, postbuf, 0,