devfs
[Top] [All Lists]

Re: [PATCH] fix initlog/minilogd deadlock on /dev/log access

To: Andrey Borzenkov <arvidjaar@xxxxxxx>
Subject: Re: [PATCH] fix initlog/minilogd deadlock on /dev/log access
From: Pavel Roskin <proski@xxxxxxx>
Date: Tue, 22 Apr 2003 15:11:14 -0400 (EDT)
Cc: devfs@xxxxxxxxxxx, flepied@xxxxxxxxxxxxxxxx, quintela@xxxxxxxxxxxxxxxx, cooker@xxxxxxxxxxxxxxxx
In-reply-to: <E1982Zv-000E8b-00@xxxxxxxxxxx>
References: <E1982Zv-000E8b-00@xxxxxxxxxxx>
Sender: devfs-bounce@xxxxxxxxxxx
On Tue, 22 Apr 2003, Andrey Borzenkov wrote:

> [This is crossposted because it was once reported as devfs bug.  If
> anybody still remembers that :)]
>  Some people reported boot hanging somewhere around "Checking modules
> dependencies" or "mounting filesystems".

Excellent!  I tried to debug it but gave up.  Actually, my experience
shows that the problem happens when the framebuffer is used.  Red Hat 8.0
and 9.0 with 2.4 kernels with framebuffer hang quite often.  2.5 kernels
without framebuffer don't hang.  I haven't used kernels without devfs for
a long time, so I cannot tell if it's related.

I also suspected that the time that it takes to run depmod may be related,
so kernels with less modules are more susceptible.  However, I later found
that adding a delay to depmod won't help.

Also, the problem happens on a system with the root system on ext3, but
not on a system with root on reiserfs.  No idea if it's related.

Could you please post your patch to Red Hat Bugzilla and keep in updated?
The bug is here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=85621

> the problem was associated with devfs because with disk-based /dev root
> is usually ro on boot i.e. /dev/log either cannot be created at all or
> cannot be modified.

I wonder if it's possible to have devfs mounted read-only on startup.

> anyway I am pretty sure this patch fixes it because I started to have
> deadlock situation on every second boot. With this patch it boots now
> just fine.

I'll check your patch as soon as I can.  Hopefully this evening.

-- 
Regards,
Pavel Roskin

<Prev in Thread] Current Thread [Next in Thread>