From: Alan Cox Subject: Re: [PATCH-v2] tty: prevent unnecessary work queue lock checking on flip buffer copy Date: Tue, 25 Sep 2012 15:47:07 +0100 Message-ID: <20120925154707.33aa2fa4@pyramind.ukuu.org.uk> References: <1348574506-23625-1-git-send-email-meltedpianoman@gmail.com> <20120925140627.5aea6ad7@pyramind.ukuu.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:43502 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754898Ab2IYOmS (ORCPT ); Tue, 25 Sep 2012 10:42:18 -0400 In-Reply-To: Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: Ivo Sieben Cc: Alan Cox , Greg KH , linux-serial@vger.kernel.org, RT > Or should drivers that use tty_schedule_flip() function never set the > low_latency flag? (a quick scan indeed shows that all drivers that use > the low_latency flag indeed make use of the tty_flip_buffer_push() > function). They should never do that - and adding a WARN_ON() will ensure we catch anyone who offends. I think thats worth doing as the resulting code is clearer and faster. Alan