All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karthik Manamcheri <Karthik.Manamcheri@ni.com>
To: linux-serial@vger.kernel.org
Cc: linux-kernel@vger.kernel.org,
	Karthik Manamcheri <Karthik.Manamcheri@ni.com>
Subject: [PATCH] n_tty: Unthrottle tty when flushing read buffer
Date: Wed, 23 Jan 2013 16:36:18 -0600	[thread overview]
Message-ID: <1358980578-8811-1-git-send-email-Karthik.Manamcheri@ni.com> (raw)

When the tty input buffer is full and thereby throttled,
flushing/resetting the read buffer should unthrottle to allow more
data to be received.

Signed-off-by: Karthik Manamcheri <Karthik.Manamcheri@ni.com>
---
 drivers/tty/n_tty.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
index 19083efa2314660b25e0fb5bc793af6fb7e9af57..d5cea3bb01eaeec61b577de6c58a8000412c0c37 100644
--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
@@ -229,6 +229,8 @@ static void reset_buffer_flags(struct tty_struct *tty)
 	ldata->canon_head = ldata->canon_data = ldata->erasing = 0;
 	bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE);
 	n_tty_set_room(tty);
+
+	check_unthrottle(tty);
 }
 
 /**
-- 
1.8.1.1


             reply	other threads:[~2013-01-23 22:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-23 22:36 Karthik Manamcheri [this message]
2013-01-28 21:38 ` [PATCH] n_tty: Unthrottle tty when flushing read buffer Peter Hurley
2013-01-28 22:17 ` Ilya Zykov
2013-01-30  4:36   ` Greg Kroah-Hartman

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=1358980578-8811-1-git-send-email-Karthik.Manamcheri@ni.com \
    --to=karthik.manamcheri@ni.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@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 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.