Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 400651

Summary: GFS: wrong locking order in gfs_get_parent()
Product: Red Hat Enterprise Linux 5 Reporter: Vasily Averin <vvs>
Component: gfs-kmodAssignee: Kiersten (Kerri) Anderson <kanderso>
Status: CLOSED ERRATA QA Contact: GFS Bugs <gfs-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.1CC: dmonakhov, khorenko
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0348 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 15:37:18 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:
Attachments:
Description Flags
Fix wrong locking order in gfs_get_parent() none

Description Vasily Averin 2007-11-27 09:53:21 UTC
Dmitry Monakhov from OpenVZ linux kernel team reports about wrong locking order
in gfs_get_parent(). Almost all coresponding places was fixed in
gfs-kmod-0.1.19-7.el5, but gfs_get_parrent() was missed.

The problem is fixed by attached patch.

Comment 1 Vasily Averin 2007-11-27 09:53:21 UTC
Created attachment 269561 [details]
Fix wrong locking order in gfs_get_parent()

Comment 2 Wendy Cheng 2007-11-27 15:06:53 UTC
This is probably an oversight of mine while doing last round of NFS fixes.
Will check into this. 

Comment 3 Wendy Cheng 2008-01-02 15:08:32 UTC
Patch checked into CVS today - should be ready for RHEL 5.2.

Comment 4 Wendy Cheng 2008-01-02 15:10:17 UTC
CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	wcheng	2008-01-02 15:07:07

Modified files:
	gfs-kernel/src/gfs: ops_export.c 

Log message:
        Dmitry Monakhov from OpenVZ linux kernel team reports about wrong
        locking order in gfs_get_parent(). Patch submitted by Vasily Averin
        (vvs) under Red Hat bugzilla 400651

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_export.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.8.2.3&r2=1.8.2.4

Comment 10 errata-xmlrpc 2008-05-21 15:37:18 UTC
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-2008-0348.html