]> err.no Git - linux-2.6/commit
Prevent an O_NDELAY writer from blocking when a tty write is blocked by the tty atomi...
authorAlan Cox <alan@redhat.com>
Mon, 16 Jul 2007 06:39:43 +0000 (23:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:41 +0000 (09:05 -0700)
commit9c1729db3e6d738f872bcb090212af00473bf666
treebe68b99784607953fb50d9330d34c2728215be57
parentc9c64155f5a81b4b41e98f9fb9c464a565c1bf72
Prevent an O_NDELAY writer from blocking when a tty write is blocked by the tty atomic writer mutex

Without this a tty write could block if a previous blocking tty write was
in progress on the same tty and blocked by a line discipline or hardware
event.  Originally found and reported by Dave Johnson.

Signed-off-by: Alan Cox <alan@redhat.com>
Acked-by: Dave Johnson <djohnson+linux-kernel@sw.starentnetworks.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/n_hdlc.c
drivers/char/n_tty.c
drivers/char/tty_io.c
drivers/char/tty_ioctl.c
include/linux/tty.h