All of lore.kernel.org
 help / color / mirror / Atom feed
* + tty-make-ppp_synctty-and-hdlc-work-with-pseudo-terminals.patch added to -mm tree
@ 2011-08-31 23:43 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2011-08-31 23:43 UTC (permalink / raw)
  To: mm-commits; +Cc: utdilya, alan, aneesh.kumar, greg, hirofumi, torvalds


The patch titled
     tty: make ppp_synctty and hdlc work with pseudo terminals
has been added to the -mm tree.  Its filename is
     tty-make-ppp_synctty-and-hdlc-work-with-pseudo-terminals.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: tty: make ppp_synctty and hdlc work with pseudo terminals
From: ilya <utdilya@mail.ru>

Taken from https://bugzilla.kernel.org/show_bug.cgi?id=40482.

If frames are sent very fast from one side(master/slave) to other one,
the frames merge in one (merge point "flip buffer") and the other side can read
only one big frame. But sync line disciplines need one frame in one read.

To push one frame to ldisc I propose this small patch.  It fixes a
regression introduced by commit e043e42bdb6 ("pty: avoid forcing
'low_latency' tty flag").

Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Greg KH <greg@kroah.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/tty/pty.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/tty/pty.c~tty-make-ppp_synctty-and-hdlc-work-with-pseudo-terminals drivers/tty/pty.c
--- a/drivers/tty/pty.c~tty-make-ppp_synctty-and-hdlc-work-with-pseudo-terminals
+++ a/drivers/tty/pty.c
@@ -221,6 +221,7 @@ static int pty_open(struct tty_struct *t
 	clear_bit(TTY_OTHER_CLOSED, &tty->link->flags);
 	set_bit(TTY_THROTTLED, &tty->flags);
 	retval = 0;
+	tty->low_latency = 1;
 out:
 	return retval;
 }
_

Patches currently in -mm which might be from utdilya@mail.ru are

tty-make-ppp_synctty-and-hdlc-work-with-pseudo-terminals.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-31 23:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-31 23:43 + tty-make-ppp_synctty-and-hdlc-work-with-pseudo-terminals.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.