2.5.51 + devfs root + SMP = lockup

From: Adam J. Richter (adam@yggdrasil.com)
Date: Thu Dec 12 2002 - 00:41:17 EST

        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:

    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."

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

This archive was generated by hypermail 2b29 : Sun Dec 15 2002 - 22:00:24 EST