Bug 206590
Summary: | fcntl(F_UNLCK) return code | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Cluster Suite | Reporter: | Wendy Cheng <nobody+wcheng> | ||||||
Component: | dlm | Assignee: | Abhijith Das <adas> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 4 | CC: | ccaulfie, cluster-maint, pyaduvan | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | RHBA-2006-0705 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-10-11 16:50:35 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: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 207487 | ||||||||
Attachments: |
|
Description
Wendy Cheng
2006-09-15 05:57:15 UTC
Created attachment 136330 [details]
test case supplied by support front end engineer (Piyush Yaduvanshi)
I did a quick browsing thru plock code. Look like an easy fix - just add a check into punlock_internal() and unconditionally with "0" if that is true. Your call though. If you want me to hack the patch, let me know. sorry, s/unconditionally with/unconditionally return/ in above update. Created attachment 136370 [details]
fix to the bug
It has nothing to do with punlock_internal(), actually. The call to
get_resource() in lm_dlm_punlock() returns -ENOENT because it cannot find any
plocks associated with the given inode. This patch checks for -ENOENT return
code and returns 0 in the case of F_UNLCK. Wendy/Dave, please let me know if
this makes sense and if it's ok to commit.
Looks good to me. cvs commit -m "fix for bz 206590. F_UNLCK was returning -ENOENT when it didn't find plocks associated with the given inode. Should return 0 now." plock.c Checking in plock.c; /cvs/cluster/cluster/gfs-kernel/src/dlm/Attic/plock.c,v <-- plock.c new revision: 1.12.8.3; previous revision: 1.12.8.2 done An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0705.html |