Bug 306391
| Summary: | Not able to unblock/cancel a thread waiting on a lock from another thread. | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Cluster Suite | Reporter: | Norm Murray <nmurray> |
| Component: | dlm-kernel | Assignee: | Christine Caulfield <ccaulfie> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Cluster QE <mspqa-list> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 4 | CC: | ccaulfie, cluster-maint, tao |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-04-24 14:45:58 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Wade Mealing
2007-09-26 04:57:43 UTC
There are two things going on here. The first is that the customer is using the synchronous call dlm_unlock_wait(CANCEL) to cancel the lock. This is wrong, it should be an asynchronous dlm_unlock(CANCEL) so that the cancel AST is delivered to the waiting process not to the cancelling one. This exposes a bug in the DLM where the astparam is overwritten by the value passed to dlm_unlock, whereas it should be preserved. With this bug, the waiting routine gets passed a bogus parameter and the process segfaults. I have checked in a patch to the RHEL4 branch to fix this behaviour. It will also need looking into for RHEL5. Checking in device.c; /cvs/cluster/cluster/dlm-kernel/src/Attic/device.c,v <-- device.c new revision: 1.24.2.11; previous revision: 1.24.2.10 done This seems to have found its way into 4.6 |