[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200910031531.19224.oliver@neukum.org>
Date: Sat, 3 Oct 2009 15:31:18 +0200
From: Oliver Neukum <oliver@...kum.org>
To: Johan Hovold <jhovold@...il.com>
Cc: Alan Cox <alan@...rguk.ukuu.org.uk>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
"Greg Kroah-Hartman" <gregkh@...e.de>,
Michael Trimarchi <trimarchi@...dalf.sssup.it>,
linux-usb@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] USB: ftdi_sio: Remove tty->low_latency.
Am Samstag, 3. Oktober 2009 14:28:48 schrieb Johan Hovold:
> +void ftdi_unthrottle(struct tty_struct *tty)
[..]
> + spin_lock_irqsave(&port->lock, flags);
> + was_throttled = port->throttled;
> + port->throttled = port->throttle_req = 0;
> + spin_unlock_irqrestore(&port->lock, flags);
>
> - if (actually_throttled)
> - schedule_delayed_work(&priv->rx_work, 0);
> + if (was_throttled && !test_bit(ASYNCB_CLOSING, &port->port.flags))
> + ftdi_submit_read_urb(port, GFP_KERNEL);
> }
Did you check whether this races with resume()?
If so, you'll need to submit with the spinlock held.
Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists