Re: [PATCH] new tty buffering locking fix

From: Olaf Hering
Date: Tue Feb 07 2006 - 07:33:04 EST


On Fri, Feb 03, Linux Kernel Mailing List wrote:

> [PATCH] new tty buffering locking fix
>
> Change locking in the new tty buffering facility from using tty->read_lock,
> which is currently ignored by drivers and thus ineffective. New locking
> uses a new tty buffering specific lock enforced centrally in the tty
> buffering code.
>
> Two drivers (esp and cyclades) are updated to use the tty buffering
> functions instead of accessing tty buffering internals directly. This is
> required for the new locking to work.
>
> Minor checks for NULL buffers added to
> tty_prepare_flip_string/tty_prepare_flip_string_flags
>
> Signed-off-by: Paul Fulghum <paulkf@xxxxxxxxxxxxx>
> Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
> Signed-off-by: Linus Torvalds <torvalds@xxxxxxxx>
>
> drivers/char/cyclades.c | 6 +--
> drivers/char/esp.c | 4 +-
> drivers/char/tty_io.c | 77 ++++++++++++++++++++++++++++++-----------------
> include/linux/kbd_kern.h | 5 +++
> include/linux/tty.h | 2 +
> include/linux/tty_flip.h | 7 +++-
> 6 files changed, 68 insertions(+), 33 deletions(-)

This patch breaks the hvc console, no input is accepted, even with
init=/bin/sash? Any idea what this driver needs to do now?
I wonder if it worked ok on -mm.

--
short story of a lazy sysadmin:
alias appserv=wotan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/