From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755378AbaEMXxp (ORCPT ); Tue, 13 May 2014 19:53:45 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.228]:28133 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753573AbaEMXxk (ORCPT ); Tue, 13 May 2014 19:53:40 -0400 Date: Tue, 13 May 2014 19:53:36 -0400 From: Steven Rostedt To: paulmck@linux.vnet.ibm.com Cc: Thomas Gleixner , Peter Zijlstra , Lai Jiangshan , LKML , Dave Jones , Linus Torvalds , Darren Hart , Davidlohr Bueso , Ingo Molnar , Clark Williams , Roland McGrath , Carlos ODonell , Jakub Jelinek , Michael Kerrisk , Sebastian Andrzej Siewior Subject: Re: [patch 1/3] rtmutex: Add missing deadlock check Message-ID: <20140513195336.232bad54@gandalf.local.home> In-Reply-To: <20140513232710.GA18164@linux.vnet.ibm.com> References: <20140512190438.314125476@linutronix.de> <20140512201700.999660035@linutronix.de> <5371B2D9.8060405@cn.fujitsu.com> <20140513084815.GB2485@laptop.programming.kicks-ass.net> <20140513162041.3405b668@gandalf.local.home> <20140513203619.GV18164@linux.vnet.ibm.com> <20140513220009.GW18164@linux.vnet.ibm.com> <20140513184430.5f2e12f8@gandalf.local.home> <20140513232710.GA18164@linux.vnet.ibm.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 May 2014 16:27:11 -0700 "Paul E. McKenney" wrote: > On Tue, May 13, 2014 at 06:44:30PM -0400, Steven Rostedt wrote: > > On Tue, 13 May 2014 15:00:09 -0700 > > "Paul E. McKenney" wrote: > > > > > > > Good points -- I was indeed thinking about stress testing instead of > > > algorithmic testing. > > > > But doesn't lockdep use algorithmic tests too? > > I suppose you could argue that there is no such thing as non-algorithmic > testing, given that all test code uses an algorithm of some sort. Perhaps > with the exception of letting your pet walk across the keyboard. ;-) > > Perhaps I should have instead said that I was thinking about random > testing instead of formal testing? Actually it still applies, but I was mistaken, it's not lockdep itself, it's the LOCKING_API_SELFTESTS. They are a form of formal testing as suppose to random testing. See lib/locking-selftest.c. That looks more like something we can do for the rtmutex code, or even add to it. -- Steve