linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: Ivo Sieben <meltedpianoman@gmail.com>
Cc: Greg KH <gregkh@linuxfoundation.org>,
	linux-serial@vger.kernel.org, RT <linux-rt-users@vger.kernel.org>
Subject: Re: [PATCH] [tty]: Report warning when low_latency flag is wrongly used
Date: Wed, 24 Oct 2012 10:32:28 -0400	[thread overview]
Message-ID: <5087FBFC.6050506@windriver.com> (raw)
In-Reply-To: <1351082142-28633-1-git-send-email-meltedpianoman@gmail.com>

On 12-10-24 08:35 AM, Ivo Sieben wrote:
> When a driver has the low_latency flag set and uses the schedule_flip()
> function to initiate copying data to the line discipline, a workqueue is
> scheduled in but never actually flushed. This is incorrect use of the
> low_latency flag (driver should not support the low_latency flag, or use
> the tty_flip_buffer_push() function instead). Make sure a warning is
> reported to catch incorrect use of the low_latency flag.
> 
> This patch goes with: cee4ad1ed90a0959fc29f9d30a2526e5e9522cfa

Ideally you shouldn't put commit IDs in the commit log when they
are not "permanent" (i.e. already part of mainline).  For example,
I have no idea what cee4ad1e contains, or what tree it lives in,
and I can't even search for it, since you've not also included
the short log.

Paul.
--

> 
> Signed-off-by: Ivo Sieben <meltedpianoman@gmail.com>
> 
> ---
>  drivers/tty/tty_buffer.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c
> index 06725f5..6cf87d7 100644
> --- a/drivers/tty/tty_buffer.c
> +++ b/drivers/tty/tty_buffer.c
> @@ -365,6 +365,7 @@ void tty_schedule_flip(struct tty_struct *tty)
>  {
>  	struct tty_bufhead *buf = &tty->port->buf;
>  	unsigned long flags;
> +	WARN_ON(tty->low_latency);
>  
>  	spin_lock_irqsave(&buf->lock, flags);
>  	if (buf->tail != NULL)
> 

  reply	other threads:[~2012-10-24 14:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-20 14:02 [PATCH] tty: prevent unnecessary work queue lock checking on flip buffer copy Ivo Sieben
2012-09-20 16:33 ` Alan Cox
2012-09-24  9:33   ` Ivo Sieben
2012-09-25 12:01     ` [PATCH-v2] " Ivo Sieben
2012-09-25 13:06       ` Alan Cox
2012-09-25 14:39         ` Ivo Sieben
2012-09-25 14:47           ` Alan Cox
2012-09-27 11:58             ` [PATCH-v3] " Ivo Sieben
2012-09-27 12:02               ` Ivo Sieben
2012-10-22 23:47                 ` Greg KH
2012-10-23 10:16                   ` Alan Cox
2012-10-24 12:35                     ` [PATCH] [tty]: Report warning when low_latency flag is wrongly used Ivo Sieben
2012-10-24 14:32                       ` Paul Gortmaker [this message]
2012-10-24 18:22                     ` [PATCH-v3] tty: prevent unnecessary work queue lock checking on flip buffer copy Greg KH
2012-09-27 13:15               ` Alan Cox
2012-09-27 16:53                 ` Greg KH

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=5087FBFC.6050506@windriver.com \
    --to=paul.gortmaker@windriver.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=meltedpianoman@gmail.com \
    /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).