Bug 10170 - automount daemon hang
Summary: automount daemon hang
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 6.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-03-14 18:53 UTC by dliebson
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-09-16 22:05:01 UTC
Embargoed:


Attachments (Terms of Use)

Description dliebson 2000-03-14 18:53:13 UTC
Automount daemon hangs when multiple processes attempt
to simultaneously access the same nonexistant, automounted
filesystem.

perl -e 'fork; foreach(0..100){print "$$ $_\n";stat("/foo/bar");}'
will hang, where /foo has an associated map of the form
* -rw,rsize=8192,wsize=8192,noquota,bg,hard,intr,retrans=6 foo:/foo/&
and foo:/foo/bar is not exported.

Comment 1 Nalin Dahyabhai 2000-03-16 13:24:59 UTC
Please upgrade to the latest version of autofs (3.1.4-3) from Raw Hide
(ftp://ftp.redhat.com/pub/rawhide/i386/RedHat/RPMS/), which may already
have fixed the problem (6.0 shipped with autofs 3.1.3).

However, it may be a kernel problem.  If you can use 'ps' to find the
PID of the hung automount process, try running "strace -p <PID>" to see
if it's hung waiting on the kernel or something else.

Comment 2 dliebson 2000-03-16 16:13:59 UTC
Autofs 3.1.4 seems to have the the same problem.

PS shows two automount daemon processes for the mountpoint.
One is the parent process, and seems to be ok.  The second
process is a child, and is hung in a call to mkdir.

Comment 3 Nalin Dahyabhai 2000-03-16 22:13:59 UTC
Then I suspect a race condition in the kernel.  Looks like it's in
fs/autofs/root.c somewhere.  Reassigning to the kernel package.

You may want to re-post that last part to the autofs mailing list at
autofs.org, because this looks like a non-distribution-
specific problem to me.

Comment 4 Alan Cox 2000-09-16 22:04:59 UTC
A race in the kernel was indeed fixed - I suspect the 6.2 or 6.2 errata kernel
will be solid


Comment 5 Brent Fox 2002-06-05 15:57:48 UTC
Closing due to old age.


Note You need to log in before you can comment on or make changes to this bug.