From: Joe Peterson <joe@skyrush.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] TTY: Fix loss of echoed characters (2nd follow-on PATCH attached)
Date: Tue, 09 Sep 2008 07:15:12 -0600 [thread overview]
Message-ID: <48C676E0.1080600@skyrush.com> (raw)
In-Reply-To: <20080909141210.4fd546a1@lxorguk.ukuu.org.uk>
Alan Cox wrote:
> If you have the column handling isolated and locked that is a big step
> towards exterminating the BKL in the n_tty code. It also illustrates why
> locking people always say "lock data not code".
Well, it's isolated, but still locked with the BKL, which would be great
to get rid of. A few questions for you, since you've worked with this
code (and kernel locking stuff) a lot longer than I:
1) Now that column state is confined to the process_out/echo funcs in
n_tty, would using tty_write_lock() (the defined atomic write lock
mutex) be a good replacement for lock_kernel(), even though interruptible?
2) To protect echo buffer operations, I would lean toward using a
separate echo lock mutex so it does not lock against non-echo-buffer
output. Would nesting this with #1 be advisable? Should it be
interruptable?
3) tty_write() mentions refers to ldisc use of the BKL. If we change
this, are there any considerations for the tty_io or driver code?
Thanks, Joe
next prev parent reply other threads:[~2008-09-09 13:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200807252257.m6PMvieO003213@imap1.linux-foundation.org>
2008-08-20 15:36 ` [PATCH] TTY: Fix loss of echoed characters Joe Peterson
2008-08-26 12:41 ` Joe Peterson
2008-09-08 16:11 ` [PATCH] TTY: Fix loss of echoed characters (2nd follow-on PATCH attached) Joe Peterson
2008-09-09 0:32 ` Andrew Morton
2008-09-09 10:55 ` Alan Cox
2008-09-09 17:43 ` Andrew Morton
2008-09-09 20:42 ` Joe Peterson
2008-09-10 23:39 ` Andrew Morton
2008-09-11 12:53 ` Joe Peterson
2008-09-09 13:00 ` Joe Peterson
2008-09-09 13:12 ` Alan Cox
2008-09-09 13:15 ` Joe Peterson [this message]
2008-09-09 13:19 ` 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=48C676E0.1080600@skyrush.com \
--to=joe@skyrush.com \
--cc=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
/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