public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* linux-2.6.31 INIT: open(/dev/console): Input/output error (due to  commit b50989dc444599c8b21edc23536fc305f4e9b7d5)
@ 2009-09-24 13:24 Jeff Chua
  2009-09-24 15:01 ` Alan Cox
  0 siblings, 1 reply; 10+ messages in thread
From: Jeff Chua @ 2009-09-24 13:24 UTC (permalink / raw)
  To: lkml, Alan Cox, Greg Kroah-Hartman, Linus Torvalds

Latest linux pull few days ago broke the console.

The error during boot up while switching from init S to M showed

INIT: open(/dev/console): Input/output error


Reverting this commit solves the problem. This is 100% repeatable on a
"real" machine, but does not show up on kvm or vmware guest console.


commit b50989dc444599c8b21edc23536fc305f4e9b7d5
Author: Alan Cox <alan@linux.intel.com>
Date:   Sat Sep 19 13:13:22 2009 -0700

    tty: make the kref destructor occur asynchronously

    We want to be able to sleep in the destructor for USB at least. It isn't a
    hot path so just pushing it to a work queue doesn't really cause any
    difficulty.

    Signed-off-by: Alan Cox <alan@linux.intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>



Thanks,
Jeff

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

* Re: linux-2.6.31 INIT: open(/dev/console): Input/output error (due to  commit b50989dc444599c8b21edc23536fc305f4e9b7d5)
  2009-09-24 13:24 linux-2.6.31 INIT: open(/dev/console): Input/output error (due to commit b50989dc444599c8b21edc23536fc305f4e9b7d5) Jeff Chua
@ 2009-09-24 15:01 ` Alan Cox
  2009-09-24 16:23   ` jeff.chua.linux
  0 siblings, 1 reply; 10+ messages in thread
From: Alan Cox @ 2009-09-24 15:01 UTC (permalink / raw)
  To: Jeff Chua; +Cc: lkml, Alan Cox, Greg Kroah-Hartman, Linus Torvalds

On Thu, 24 Sep 2009 21:24:45 +0800
Jeff Chua <jeff.chua.linux@gmail.com> wrote:

> Latest linux pull few days ago broke the console.
> 
> The error during boot up while switching from init S to M showed
> 
> INIT: open(/dev/console): Input/output error
> 
> 
> Reverting this commit solves the problem. This is 100% repeatable on a
> "real" machine, but does not show up on kvm or vmware guest console.

It is timing dependant. A discussion and some fixes were posted a while
ago.

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

* Re: linux-2.6.31 INIT: open(/dev/console): Input/output error (due to  commit b50989dc444599c8b21edc23536fc305f4e9b7d5)
  2009-09-24 15:01 ` Alan Cox
@ 2009-09-24 16:23   ` jeff.chua.linux
  2009-09-25 10:56     ` Alan Cox
  0 siblings, 1 reply; 10+ messages in thread
From: jeff.chua.linux @ 2009-09-24 16:23 UTC (permalink / raw)
  To: Alan Cox; +Cc: lkml, Alan Cox, Greg Kroah-Hartman, Linus Torvalds

On Thu, Sep 24, 2009 at 11:01 PM, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> It is timing dependant. A discussion and some fixes were posted a while
> ago.

I must have missed that. Will try to search for it.

Thanks,
Jeff

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

* Re: linux-2.6.31 INIT: open(/dev/console): Input/output error (due to  commit b50989dc444599c8b21edc23536fc305f4e9b7d5)
  2009-09-24 16:23   ` jeff.chua.linux
@ 2009-09-25 10:56     ` Alan Cox
  2009-09-25 15:35       ` Jeff Chua
  0 siblings, 1 reply; 10+ messages in thread
From: Alan Cox @ 2009-09-25 10:56 UTC (permalink / raw)
  To: jeff.chua.linux; +Cc: Alan Cox, lkml, Greg Kroah-Hartman, Linus Torvalds

On Fri, 25 Sep 2009 00:23:27 +0800
"jeff.chua.linux" <jeff.chua.linux@gmail.com> wrote:

> On Thu, Sep 24, 2009 at 11:01 PM, Alan Cox <alan@lxorguk.ukuu.org.uk>
> wrote:
> > It is timing dependant. A discussion and some fixes were posted a
> > while ago.
> 
> I must have missed that. Will try to search for it.
> 
> Thanks,
> Jeff

>From Andrew's tree:

     tty: fix regression caused by "tty: make the kref destructor occur
     asynchronously"

which allows both a sync and an async element to the destruction
cleanup. The console uses the synchronous one which avoids the delay
before it becomes available again.


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

* Re: linux-2.6.31 INIT: open(/dev/console): Input/output error (due to  commit b50989dc444599c8b21edc23536fc305f4e9b7d5)
  2009-09-25 10:56     ` Alan Cox
@ 2009-09-25 15:35       ` Jeff Chua
  2009-09-25 15:47         ` Alan Cox
  0 siblings, 1 reply; 10+ messages in thread
From: Jeff Chua @ 2009-09-25 15:35 UTC (permalink / raw)
  To: Alan Cox; +Cc: Alan Cox, lkml, Greg Kroah-Hartman, Linus Torvalds

On Fri, Sep 25, 2009 at 6:56 PM, Alan Cox <alan@linux.intel.com> wrote:
> From Andrew's tree:
>
>     tty: fix regression caused by "tty: make the kref destructor occur
>     asynchronously"
>
> which allows both a sync and an async element to the destruction
> cleanup. The console uses the synchronous one which avoids the delay
> before it becomes available again.

Alan,

Is this going into Linus's branch soon? Otherwise, please kindly post
the full patch so that I can test it instead of pulling 400MB from
Andrew's tree.

Thanks,
Jeff

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

* Re: linux-2.6.31 INIT: open(/dev/console): Input/output error (due to  commit b50989dc444599c8b21edc23536fc305f4e9b7d5)
  2009-09-25 15:35       ` Jeff Chua
@ 2009-09-25 15:47         ` Alan Cox
  2009-09-25 15:52           ` Randy Dunlap
  0 siblings, 1 reply; 10+ messages in thread
From: Alan Cox @ 2009-09-25 15:47 UTC (permalink / raw)
  To: Jeff Chua; +Cc: Alan Cox, lkml, Greg Kroah-Hartman, Linus Torvalds

> Is this going into Linus's branch soon? Otherwise, please kindly post
> the full patch so that I can test it instead of pulling 400MB from
> Andrew's tree.

I don't have Andrews tty patches here either sorry but I thought he kept
them broken out on kernel.org ?

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

* Re: linux-2.6.31 INIT: open(/dev/console): Input/output error (due to  commit b50989dc444599c8b21edc23536fc305f4e9b7d5)
  2009-09-25 15:47         ` Alan Cox
@ 2009-09-25 15:52           ` Randy Dunlap
  2009-09-25 16:00             ` Jeff Chua
  0 siblings, 1 reply; 10+ messages in thread
From: Randy Dunlap @ 2009-09-25 15:52 UTC (permalink / raw)
  To: Alan Cox; +Cc: Jeff Chua, Alan Cox, lkml, Greg Kroah-Hartman, Linus Torvalds

Alan Cox wrote:
>> Is this going into Linus's branch soon? Otherwise, please kindly post
>> the full patch so that I can test it instead of pulling 400MB from
>> Andrew's tree.
> 
> I don't have Andrews tty patches here either sorry but I thought he kept
> them broken out on kernel.org ?
> --

http://userweb.kernel.org/~akpm/mmotm/
see the broken-out/ subdir.

~Randy


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

* Re: linux-2.6.31 INIT: open(/dev/console): Input/output error (due to  commit b50989dc444599c8b21edc23536fc305f4e9b7d5)
  2009-09-25 15:52           ` Randy Dunlap
@ 2009-09-25 16:00             ` Jeff Chua
  2009-09-25 16:32               ` Jeff Chua
  0 siblings, 1 reply; 10+ messages in thread
From: Jeff Chua @ 2009-09-25 16:00 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Alan Cox, Alan Cox, lkml, Greg Kroah-Hartman, Linus Torvalds

On Fri, Sep 25, 2009 at 11:52 PM, Randy Dunlap <rdunlap@xenotime.net> wrote:
> Alan Cox wrote:
>>> Is this going into Linus's branch soon? Otherwise, please kindly post
>>> the full patch so that I can test it instead of pulling 400MB from
>>> Andrew's tree.
>>
>> I don't have Andrews tty patches here either sorry but I thought he kept
>> them broken out on kernel.org ?
>> --
>
> http://userweb.kernel.org/~akpm/mmotm/
> see the broken-out/ subdir.

I see. But that patch is not there. Did find it on google.

http://www.spinics.net/lists/mm-commits/msg71772.html

So, I'll test it now.

Thanks,
Jeff

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

* Re: linux-2.6.31 INIT: open(/dev/console): Input/output error (due to  commit b50989dc444599c8b21edc23536fc305f4e9b7d5)
  2009-09-25 16:00             ` Jeff Chua
@ 2009-09-25 16:32               ` Jeff Chua
  2009-09-25 19:46                 ` Frédéric L. W. Meunier
  0 siblings, 1 reply; 10+ messages in thread
From: Jeff Chua @ 2009-09-25 16:32 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Alan Cox, Alan Cox, lkml, Greg Kroah-Hartman, Linus Torvalds

On Sat, Sep 26, 2009 at 12:00 AM, Jeff Chua <jeff.chua.linux@gmail.com> wrote:
> On Fri, Sep 25, 2009 at 11:52 PM, Randy Dunlap <rdunlap@xenotime.net> wrote:
>> Alan Cox wrote:
>>>> Is this going into Linus's branch soon? Otherwise, please kindly post
>>>> the full patch so that I can test it instead of pulling 400MB from
>>>> Andrew's tree.
>>> I don't have Andrews tty patches here either sorry but I thought he kept
>>> them broken out on kernel.org ?
>> http://userweb.kernel.org/~akpm/mmotm/
>> see the broken-out/ subdir.
>
> I see. But that patch is not there. Did find it on google.
>
> http://www.spinics.net/lists/mm-commits/msg71772.html
>
> So, I'll test it now.

Alan, Randy,

That patch works!

Thanks,
Jeff

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

* Re: linux-2.6.31 INIT: open(/dev/console): Input/output error (due to  commit b50989dc444599c8b21edc23536fc305f4e9b7d5)
  2009-09-25 16:32               ` Jeff Chua
@ 2009-09-25 19:46                 ` Frédéric L. W. Meunier
  0 siblings, 0 replies; 10+ messages in thread
From: Frédéric L. W. Meunier @ 2009-09-25 19:46 UTC (permalink / raw)
  To: Linux Kernel

On Sat, 26 Sep 2009, Jeff Chua wrote:

> On Sat, Sep 26, 2009 at 12:00 AM, Jeff Chua <jeff.chua.linux@gmail.com> wrote:
>> On Fri, Sep 25, 2009 at 11:52 PM, Randy Dunlap <rdunlap@xenotime.net> wrote:
>>> Alan Cox wrote:
>>>>> Is this going into Linus's branch soon? Otherwise, please kindly post
>>>>> the full patch so that I can test it instead of pulling 400MB from
>>>>> Andrew's tree.
>>>> I don't have Andrews tty patches here either sorry but I thought he kept
>>>> them broken out on kernel.org ?
>>> http://userweb.kernel.org/~akpm/mmotm/
>>> see the broken-out/ subdir.
>>
>> I see. But that patch is not there. Did find it on google.
>>
>> http://www.spinics.net/lists/mm-commits/msg71772.html
>>
>> So, I'll test it now.
>
> Alan, Randy,
>
> That patch works!
>
> Thanks,
> Jeff

Here, it doesn't fix 
http://marc.info/?l=linux-kernel&m=125382651922142&w=2

But I found something in syslog:

Sep 25 16:17:31 pervalidus agetty[1465]: /dev/tty2: No such file or directory
Sep 25 16:17:31 pervalidus agetty[1464]: /dev/tty1: No such file or directory
Sep 25 16:17:31 pervalidus agetty[1466]: /dev/tty3: No such file or directory
...

So, why it works with 2.6.30.7 and not 2.6.30.1 ?

And I also noticed that it takes longer with 2.6.30.7 than 
before for the login and password prompts to appear.

In /etc/inittab, I have

c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 vc/4 linux (yes, nothing 
about vc/4 in the logs)

So, with 2.6.30, udev doesn't create the symlinks from vc/*, or 
it's something in the kernel that prevents it ?

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

end of thread, other threads:[~2009-09-25 19:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-24 13:24 linux-2.6.31 INIT: open(/dev/console): Input/output error (due to commit b50989dc444599c8b21edc23536fc305f4e9b7d5) Jeff Chua
2009-09-24 15:01 ` Alan Cox
2009-09-24 16:23   ` jeff.chua.linux
2009-09-25 10:56     ` Alan Cox
2009-09-25 15:35       ` Jeff Chua
2009-09-25 15:47         ` Alan Cox
2009-09-25 15:52           ` Randy Dunlap
2009-09-25 16:00             ` Jeff Chua
2009-09-25 16:32               ` Jeff Chua
2009-09-25 19:46                 ` Frédéric L. W. Meunier

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