From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757054Ab2HUTNH (ORCPT ); Tue, 21 Aug 2012 15:13:07 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:36169 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756264Ab2HUTNB (ORCPT ); Tue, 21 Aug 2012 15:13:01 -0400 Date: Tue, 21 Aug 2012 20:12:55 +0100 From: Ben Hutchings To: Steven Rostedt Cc: Thomas Gleixner , LKML , RT , Theodore Tso Message-ID: <20120821191255.GH29217@decadent.org.uk> References: <1344954649.6724.13.camel@gandalf.stny.rr.com> <1345572733.5069.9.camel@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1345572733.5069.9.camel@gandalf.local.home> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ben@decadent.org.uk Subject: Re: Using random in interrupts for RT X-SA-Exim-Version: 4.2.1 (built Mon, 22 Mar 2010 06:51:10 +0000) X-SA-Exim-Scanned: Yes (on shadbolt.decadent.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 21, 2012 at 02:12:13PM -0400, Steven Rostedt wrote: > On Tue, 2012-08-14 at 10:30 -0400, Steven Rostedt wrote: > > Thomas, > > > > Ben Hutchings asked me if we still need "genirq: Disable random call on > > preempt-rt" for -rt? With commit 902c098a366 "random: use lockless > > techniques in the interrupt path" there is no more locks used. But does > > it still produce high latencies? > > Ben, > > Looks that the #ifndef can't be removed just yet. The code is not > totally lockless... > > > add_interrupt_randomness -> > credit_entropy_bits -> > kill_fasync -> > kill_fasync_rcu -> > spin_lock_irqsave(&fa->fa_lock, flags) > > to make things worse, that spinlock turns into a mutex on -rt, so it may > crash the box if triggered. Thanks for checking this. Ben. -- Ben Hutchings We get into the habit of living before acquiring the habit of thinking. - Albert Camus