From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757330AbcJHQmf (ORCPT ); Sat, 8 Oct 2016 12:42:35 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:56494 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753136AbcJHQm0 (ORCPT ); Sat, 8 Oct 2016 12:42:26 -0400 Date: Sat, 8 Oct 2016 18:42:07 +0200 From: Peter Zijlstra To: Thomas Gleixner Cc: Linus Torvalds , Waiman Long , Jason Low , Ding Tianhong , Will Deacon , Ingo Molnar , Imre Deak , Linux Kernel Mailing List , Davidlohr Bueso , Tim Chen , Terry Rudd , "Paul E. McKenney" , Chris Wilson , Daniel Vetter , Rob Clark Subject: Re: [PATCH -v4 1/8] locking/drm: Kill mutex trickery Message-ID: <20161008164207.GH3568@worktop.programming.kicks-ass.net> References: <20161007145243.361481786@infradead.org> <20161007150210.927453282@infradead.org> <20161007154351.GL3117@twins.programming.kicks-ass.net> <20161008140136.GG3142@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 08, 2016 at 04:11:25PM +0200, Thomas Gleixner wrote: > Well, when you add just trylock_recursive then people are going to use it > anyway no matter whether it is easy or not. > > So if we decide to provide something which supports recursive locking for > mutexes then we are better off doing it with a proper set of functions and > not just a single undebugable wrapper. So ideally I'd say, no recursive stuff at all. But that means the GEM people need to either do custom hacks (and you know that will spread), or need to be convinced to rework their locking somehow.