Bug 1533804 - readdir-ahead: change of cache-size should be atomic
Summary: readdir-ahead: change of cache-size should be atomic
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: unclassified
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-01-12 09:37 UTC by Zhang Huan
Modified: 2018-03-15 11:25 UTC (History)
2 users (show)

Fixed In Version: glusterfs-4.0.0
Clone Of:
Environment:
Last Closed: 2018-03-15 11:25:40 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Zhang Huan 2018-01-12 09:37:12 UTC
Description of problem:
For readdir-ahead xlator, change of cache-size is not atomic. Need to convert its variable type to atomic to protect concurrent change of its value.

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-01-12 09:53:21 UTC
REVIEW: https://review.gluster.org/19187 (performance/readdir-ahead: fix cache usage update issue) posted (#1) for review on master by Zhang Huan

Comment 2 Worker Ant 2018-01-15 05:08:53 UTC
COMMIT: https://review.gluster.org/19187 committed in master by \"Zhang Huan\" <zhanghuan> with a commit message- performance/readdir-ahead: fix cache usage update issue

Use atomic operation to modify cache-size to protect it from concurrent
modification.

Change-Id: Ie73cdd4abbaf0232b1db4ac856c01d24603890ad
BUG: 1533804
Signed-off-by: Zhang Huan <zhanghuan>

Comment 3 Shyamsundar 2018-03-15 11:25:40 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-4.0.0, please open a new bug report.

glusterfs-4.0.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-March/000092.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.