Description of problem: LOCK (&frame->lock); { if (op_ret < 0) { local->op_ret = op_ret; local->op_errno = op_errno; goto out; } shard_inode_ctx_set (local->fd->inode, this, postbuf, 0, SHARD_MASK_TIMES); } UNLOCK (&frame->lock); When op_ret is < 0, the control goes to out without unlocking frame->lock. This can lead to a deadlock. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
https://review.gluster.org/20171
REVISION POSTED: https://review.gluster.org/20171 (features/shard: Fix missing unlock in shard_fsync_shards_cbk()) posted (#2) for review on release-4.1 by Krutika Dhananjay
REVIEW: https://review.gluster.org/20171 (features/shard: Fix missing unlock in shard_fsync_shards_cbk()) posted (#2) for review on release-4.1 by Krutika Dhananjay
COMMIT: https://review.gluster.org/20171 committed in release-4.1 by "Krutika Dhananjay" <kdhananj> with a commit message- features/shard: Fix missing unlock in shard_fsync_shards_cbk() Backport of: > Change-Id: I745a98e957cf3c6ba69247fcf6b58dd05cf59c3c > Signed-off-by: Vijay Bellur <vbellur> > (cherry picked from commit b21f742f96d46b4adfa87281dd9a2e48fea8d031) > BUG: 789278 Change-Id: I745a98e957cf3c6ba69247fcf6b58dd05cf59c3c fixes: bz#1587908 Signed-off-by: Vijay Bellur <vbellur> (cherry picked from commit b21f742f96d46b4adfa87281dd9a2e48fea8d031)
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-v4.1.0, please open a new bug report. glusterfs-v4.1.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://lists.gluster.org/pipermail/announce/2018-June/000102.html [2] https://www.gluster.org/pipermail/gluster-users/