From: Peter Hurley <peter@hurleysoftware.com>
To: Karthik Manamcheri <Karthik.Manamcheri@ni.com>
Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
Ilya Zykov <ilya@ilyx.ru>
Subject: Re: [PATCH] n_tty: Unthrottle tty when flushing read buffer
Date: Mon, 28 Jan 2013 16:38:58 -0500 [thread overview]
Message-ID: <1359409138.3301.6.camel@thor.lan> (raw)
In-Reply-To: <1358980578-8811-1-git-send-email-Karthik.Manamcheri@ni.com>
[cc'ing Ilya Zykov]
Hi Karthik,
On Wed, 2013-01-23 at 16:36 -0600, Karthik Manamcheri wrote:
> 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);
> }
>
> /**
Although it's not really my place to NAK, the maintainership was
recently transitioned, so NAK. See this kernel thread
http://www.gossamer-threads.com/lists/linux/kernel/1636154?do=post_view_threaded#1636154
for why.
See if this patch
http://www.gossamer-threads.com/lists/linux/kernel/1660788
works for you instead.
Regards,
Peter Hurley
next prev parent reply other threads:[~2013-01-28 21:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-23 22:36 [PATCH] n_tty: Unthrottle tty when flushing read buffer Karthik Manamcheri
2013-01-28 21:38 ` Peter Hurley [this message]
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=1359409138.3301.6.camel@thor.lan \
--to=peter@hurleysoftware.com \
--cc=Karthik.Manamcheri@ni.com \
--cc=ilya@ilyx.ru \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).