public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jin Dongming <jin.dongming@np.css.fujitsu.com>
To: LKLM <linux-kernel@vger.kernel.org>
Cc: Alan Cox <alan@linux.intel.com>,
	Greg Kroah-Hartman <gregkh@suse.de>,
	Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>,
	Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Subject: [BUG? -next] login prompt of tty2~6 displayed slowly
Date: Fri, 18 Sep 2009 14:32:55 +0900	[thread overview]
Message-ID: <4AB31B87.2040007@np.css.fujitsu.com> (raw)

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

             reply	other threads:[~2009-09-18  5:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-18  5:32 Jin Dongming [this message]
2009-09-18 16:03 ` [BUG? -next] login prompt of tty2~6 displayed slowly Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AB31B87.2040007@np.css.fujitsu.com \
    --to=jin.dongming@np.css.fujitsu.com \
    --cc=alan@linux.intel.com \
    --cc=gregkh@suse.de \
    --cc=kaneshige.kenji@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=seto.hidetoshi@jp.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox