Bug 718927

Summary: Lock ordering problem on re-load of direct maps
Product: Red Hat Enterprise Linux 6 Reporter: Ian Kent <ikent>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED ERRATA QA Contact: yanfu,wang <yanwang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1CC: ikent
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: autofs-5.0.5-34 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 732332 (view as bug list) Environment:
Last Closed: 2011-12-06 17:59: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:
Bug Depends On:    
Bug Blocks: 732332    
Attachments:
Description Flags
Patch - fix null cache deadlock none

Description Ian Kent 2011-07-05 07:43:20 UTC
Created attachment 511265 [details]
Patch - fix null cache deadlock

Description of problem:

When reloading maps that include a combination of direct and indirect
maps it is possible for automount to deadlock due to incorrect lock
ordering.

How reproducible:
Occasionally.

Steps to Reproduce:
Reported upstream.
I'm not able to reproduce the problem at the moment.

Comment 2 yanfu,wang 2011-10-20 03:32:25 UTC
check patch autofs-5.0.5-fix-null-cache-deadlock.patch apply is sane and as per below comment from dev: 
The problem described by this bug is fairly obvious once the issue is recognised. The fix is not quite so obvious but is a small change and has been verified by the reporter upstream.

Comment 3 errata-xmlrpc 2011-12-06 17:59:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1723.html