From: Alan Cox Subject: Re: [PATCH 3/3] RFC: Solved unnecessary schedule latency in the TTY layer (3/3) Date: Thu, 10 May 2012 16:28:50 +0100 Message-ID: <20120510162850.3a61702d@bob.linux.org.uk> References: <1336048663-21882-1-git-send-email-meltedpianoman@gmail.com> <1336048663-21882-3-git-send-email-meltedpianoman@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com ([134.134.136.20]:61077 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757749Ab2EJPN1 (ORCPT ); Thu, 10 May 2012 11:13:27 -0400 In-Reply-To: <1336048663-21882-3-git-send-email-meltedpianoman@gmail.com> Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: Ivo Sieben Cc: Greg KH , linux-serial@vger.kernel.org, RT On Thu, 3 May 2012 14:37:43 +0200 Ivo Sieben wrote: > Solved unnecessary schedule latency in the TTY layer when used in > realtime context: > The global wait_queue that is used for line discipline idle handling > is moved to a separate wait_queue for each line instance. This > prevents unnecessary blocking on one line, because of idle handling > on another line. > > Note: In a PREEMPT_RT system "normal" spin locks behave like mutexes > and no interrupts (and therefor no scheduling) is disabled. > > Signed-off-by: Ivo Sieben And this one as a standalone I think we should merge. I'm surprised it makes a difference but its small, clean and localises a lock which is a good thing. Alan