From: Jiri Slaby <jirislaby@gmail.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org, Paul Fulghum <paulkf@microgate.com>
Subject: Re: [PATCH 1/1] Char: tty_io, fix closecount counting
Date: Sat, 31 May 2008 13:50:06 +0200 [thread overview]
Message-ID: <48413B6E.3050202@gmail.com> (raw)
In-Reply-To: <1211810923-3122-1-git-send-email-jirislaby@gmail.com>
Jiri Slaby napsal(a):
> This is probably a fix for an issue first reported in 2.6.18.1:
> http://lkml.org/lkml/2006/10/20/301
> and
> http://marc.info/?l=linux-mips&m=118797256328587
Alan, I know, you already stated some time ago, that you don't have a clue
what could have caused this. Haven't you found anything since that time as I
think the hangup path is the only possible cause of this problem?
I've found an other one from 2.6.17-rc4:
http://readlist.com/lists/vger.kernel.org/linux-kernel/44/220050.html
and from 2.6.22+suse_stuff:
http://lists.opensuse.org/opensuse-bugs/2008-04/msg05628.html
It is ever vcs1, which is /dev/console and it is the only treated separately
(otherwise I think we would have more (and distinct) reports like this).
When the console is HUPped? And what should happen with openers? The
2.6.22+suse happened when sulogin /dev/console was invoked. Any ideas how to
track this down?
> --- a/drivers/char/tty_io.c
> +++ b/drivers/char/tty_io.c
> @@ -1434,9 +1434,9 @@ static void do_tty_hangup(struct work_struct *work)
> list_for_each_entry(filp, &tty->tty_files, f_u.fu_list) {
> if (filp->f_op->write == redirected_tty_write)
> cons_filp = filp;
> + closecount++;
> if (filp->f_op->write != tty_write)
> continue;
> - closecount++;
> tty_fasync(-1, filp, 0); /* can't block */
> filp->f_op = &hung_up_tty_fops;
> }
next prev parent reply other threads:[~2008-05-31 11:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-26 14:08 [PATCH 1/1] Char: tty_io, fix closecount counting Jiri Slaby
2008-05-26 15:22 ` Jiri Slaby
2008-05-31 11:50 ` Jiri Slaby [this message]
2008-05-31 11:51 ` Jiri Slaby
2008-05-31 13:43 ` Alan Cox
2008-06-03 20:46 ` Jiri Slaby
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=48413B6E.3050202@gmail.com \
--to=jirislaby@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=paulkf@microgate.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