Bug 1416684
Summary: | Hangs on 32 bit systems since 3.9.0 | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Vitaly Lipatov <lav> | |
Component: | md-cache | Assignee: | Vitaly Lipatov <lav> | |
Status: | CLOSED EOL | QA Contact: | ||
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.9 | CC: | bugs, ndevos | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1417913 (view as bug list) | Environment: | ||
Last Closed: | 2017-03-08 12:32:48 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: | ||||
Bug Depends On: | 1417913 | |||
Bug Blocks: |
Description
Vitaly Lipatov
2017-01-26 09:09:02 UTC
LOCK hangs due missed LOCK_INIT == missed pthread_spin_init == use gf_lock_t lock uninitialized with zero; fix: --- a/xlators/performance/md-cache/src/md-cache.c +++ b/xlators/performance/md-cache/src/md-cache.c @@ -2905,6 +2905,7 @@ init (xlator_t *this) GF_OPTION_INIT("cache-invalidation", conf->mdc_invalidation, bool, out); LOCK_INIT (&conf->lock); + LOCK_INIT (&conf->mdc_counter.lock); time (&conf->last_child_down); Hi Vitaly, do you want to send a patch to our Gerrit instance for this? The steps to do so are on http://gluster.readthedocs.io/en/latest/Developer-guide/Simplified-Development-Workflow/ I have cloned this bug to get a fix in the master branch (#1417913), the patch should be sent there first. REVIEW: https://review.gluster.org/16515 (add missed LOCK_INIT to fix INCREMENT_ATOMIC on conf->mdc_counter.lock when pthread_spin_* using) posted (#1) for review on master by Vitaly Lipatov (lav) (In reply to Niels de Vos from comment #3) ... > I have cloned this bug to get a fix in the master branch (#1417913), the > patch should be sent there first. The patch is applied to the master branch. Need I do something for backport it to other branches? There is not much to it, it basically is cherry-picking the change on top of the other branches and modifying the commit message. http://gluster.readthedocs.io/en/latest/Developer-guide/Backport-Guidelines/ explains the exact steps with some examples. I'll assign this bug to you, just let me know if you run into problems or have more questions. Thanks! REVIEW: https://review.gluster.org/16542 (md-cache: initialize mdc_counter.lock) posted (#1) for review on release-3.9 by Vitaly Lipatov (lav) Thank you, Niels! Is it enouch to send one for review on release 3.9 as I did? There is no moving in that ticket. And branch 3.10 needs that patch will manually sent, is it so? Yes, Vitaly, the change for the master branch and release-3.9 are correct. For 3.10 there is bug 1417915 that follows the same procedure. REVIEW: https://review.gluster.org/16542 (md-cache: initialize mdc_counter.lock) posted (#2) for review on release-3.9 by Vitaly Lipatov (lav) This bug is getting closed because GlusterFS-3.9 has reached its end-of-life [1]. Note: This bug is being closed using a script. No verification has been performed to check if it still exists on newer releases of GlusterFS. If this bug still exists in newer GlusterFS releases, please open a new bug against the newer release. [1]: https://www.gluster.org/community/release-schedule/ |