mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.5.51 + devfs root + SMP = lockup
@ 2002-12-12  5:41 Adam J. Richter
  0 siblings, 0 replies; 2+ messages in thread
From: Adam J. Richter @ 2002-12-12  5:41 UTC (permalink / raw)
  To: linux-kernel, rgooch, viro

	Linux 2.5.51 with SMP and devfs hangs at boot time when trying
to find the initial root device (/dev/ram0 in my case).  2.5.50 does
not have this problem.  That hang occurs when find_in_devfs in
init/do_mounts.c descends into the /dev/shm directory, eventually
resulting to a call to devfs_lookup (in fs/devfs/base.c), which hangs
at line 2685, waiting for a lock, at least on my single processor
running an SMP kernel:

out:
    dentry->d_op = &devfs_dops;
    dentry->d_fsdata = NULL;
    write_lock (&parent->u.dir.lock);    <----------- Hangs here
    wake_up (&lookup_info.wait_queue);
    write_unlock (&parent->u.dir.lock);
    devfs_put (de);
    return retval;
}   /*  End Function devfs_lookup  */


	Actually, I am running slightly modified versions of both
files, although I believe that my modificatiosn are not the cause.
In init/do_mounts.c, I am running the patch that I posted back in ~2.5.48
so that reading /dev under devfs works at all (I think the patch
has fallen through the cracks and I plan to resubmit it, but I want
to get 2.5.51 working first, in case the patch really is the culprit).

	The other difference in my system is the removable device
"support" in devfs (having the kernel reread the partition table when
you didn't ask it to, unlike a non-devfs system).  I removed it.

	Anyhow, I haven't exhausted my debugging efforts, but it has
been a little slow going, so I'm reporting what I know now, in case
anyone recognizes the problem.  If nobody beats me to it, I expect to
track down the problem in the next day or so and post a patch then.

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."



^ permalink raw reply	[flat|nested] 2+ messages in thread
* Re: 2.5.51 + devfs root + SMP = lockup
@ 2002-12-13  0:14 Adam J. Richter
  0 siblings, 0 replies; 2+ messages in thread
From: Adam J. Richter @ 2002-12-13  0:14 UTC (permalink / raw)
  To: linux-kernel, rgooch, viro

I'm embarrassed to say that I wrote:
>	Linux 2.5.51 with SMP and devfs hangs at boot time when trying
>to find the initial root device (/dev/ram0 in my case). [...]

	This was self-inflicted.  When I removed the spontaneous
partition table rereading code from devfs, I did not notice that
get_removal_partition does a read_unlock(&parent->u.dir.lock), so I
was leaving a read lock in place where I deleted the call to this
routine.  Sorry for wasting anyone else's time with it.

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-13  0:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-12  5:41 2.5.51 + devfs root + SMP = lockup Adam J. Richter
2002-12-13  0:14 Adam J. Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®