Bug 1595174 - Found an issue on using lock before init in md-cache
Summary: Found an issue on using lock before init in md-cache
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: md-cache
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-26 09:49 UTC by Zhang Huan
Modified: 2018-10-23 15:12 UTC (History)
1 user (show)

Fixed In Version: glusterfs-5.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-23 15:12:07 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

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/


Note You need to log in before you can comment on or make changes to this bug.