public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG? -next] login prompt of tty2~6 displayed slowly
@ 2009-09-18  5:32 Jin Dongming
  2009-09-18 16:03 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Jin Dongming @ 2009-09-18  5:32 UTC (permalink / raw)
  To: LKLM; +Cc: Alan Cox, Greg Kroah-Hartman, Kenji Kaneshige, Hidetoshi Seto

Hi, all

I have a trouble on tty of -next.
After the system booted and login prompt of tty1 was displayed, I tried to
change tty1 to tty2 or other console with Ctrl+Alt+FN(N:2~6). The changed screen
was black and there was not login prompt. After a few(2~3) minutes the prompt
was displayed. I checked the message of klog and there were some errors of tty
listed as following:

Sep 15 10:02:44 iridium /sbin/mingetty[3062]: tty2: cannot open tty: Input/output error
Sep 15 10:02:44 iridium /sbin/mingetty[3063]: tty3: cannot open tty: Input/output error
Sep 15 10:02:44 iridium /sbin/mingetty[3060]: tty4: cannot open tty: Input/output error
Sep 15 10:02:44 iridium /sbin/mingetty[3061]: tty5: cannot open tty: Input/output error
Sep 15 10:02:44 iridium /sbin/mingetty[3066]: tty6: cannot open tty: Input/output error
Sep 15 10:02:49 iridium init: tty2 main process (3062) terminated with status 1
Sep 15 10:02:49 iridium init: tty2 main process ended, respawning
Sep 15 10:02:49 iridium init: tty3 main process (3063) terminated with status 1
Sep 15 10:02:49 iridium init: tty3 main process ended, respawning
Sep 15 10:02:49 iridium /sbin/mingetty[3107]: tty3: cannot open tty: Input/output error
Sep 15 10:02:49 iridium init: tty4 main process (3060) terminated with status 1
Sep 15 10:02:49 iridium init: tty4 main process ended, respawning
Sep 15 10:02:49 iridium /sbin/mingetty[3106]: tty2: cannot open tty: Input/output error
Sep 15 10:02:49 iridium /sbin/mingetty[3108]: tty4: cannot open tty: Input/output error
Sep 15 10:02:49 iridium init: tty5 main process (3061) terminated with status 1
Sep 15 10:02:49 iridium init: tty5 main process ended, respawning
Sep 15 10:02:49 iridium /sbin/mingetty[3109]: tty5: cannot open tty: Input/output error
Sep 15 10:02:49 iridium init: tty6 main process (3066) terminated with status 1
Sep 15 10:02:49 iridium init: tty6 main process ended, respawning
Sep 15 10:02:49 iridium /sbin/mingetty[3110]: tty6: cannot open tty: Input/output error


And I find out that the root cause of this problem is the following patch:
    commit 236cce0066f9c6a4856bc0404e541d3db3b0255e
    Titled "tty: make the kref destructor occur asynchronously"

When the tty is closed, the content of tty is not released immediately. And the
flag of tty is set with TTY_CLOSING. So when the tty is reopened, the tty may
not be released yet. Because the TTY_CLOSING in flag of tty is still valid. The
kernel returns "-EIO" error. And the message
    "/sbin/mingetty[3062]: tty2: cannot open tty: Input/output error"
is displayed at the user land.

Best Regards
Jin Dongming

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

end of thread, other threads:[~2009-09-18 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-18  5:32 [BUG? -next] login prompt of tty2~6 displayed slowly Jin Dongming
2009-09-18 16:03 ` Alan Cox

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