Bug 1595174

Summary: Found an issue on using lock before init in md-cache
Product: [Community] GlusterFS Reporter: Zhang Huan <zhhuan>
Component: md-cacheAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-5.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-23 15:12:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zhang Huan 2018-06-26 09:49:09 UTC
Description of problem:

In md-cache, its lock is used in mdc_xattr_list_populate(), but got init after call. Need to fix this issue by moving initing lock ahead.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Worker Ant 2018-06-26 09:51:28 UTC
REVIEW: https://review.gluster.org/20391 (performance/md-cache: Fix issue on lock being used before init.) posted (#1) for review on master by Zhang Huan

Comment 2 Worker Ant 2018-06-27 04:27:32 UTC
COMMIT: https://review.gluster.org/20391 committed in master by "Poornima G" <pgurusid> with a commit message- performance/md-cache: Fix issue on lock being used before init.

lock is used in mdc_xattr_list_populate(), but got init after call. Fix
this issue by moving initing lock ahead.

Change-Id: I94b08303a8ba74b1e9388f700587a00b7ae3fd78
fixes: bz#1595174
Signed-off-by: Zhang Huan <zhanghuan>

Comment 3 Shyamsundar 2018-10-23 15:12:07 UTC
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-5.0, please open a new bug report.

glusterfs-5.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] https://lists.gluster.org/pipermail/announce/2018-October/000115.html
[2] https://www.gluster.org/pipermail/gluster-users/