Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4962915imm; Tue, 19 Jun 2018 02:47:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJBuojSxAQUJ0KVWeusKAPG73s2K5PURuzG3OGvTyEdFhEVTGO0vYRW08YQ50riR1rWE26o X-Received: by 2002:a62:8552:: with SMTP id u79-v6mr17475753pfd.201.1529401633831; Tue, 19 Jun 2018 02:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529401633; cv=none; d=google.com; s=arc-20160816; b=niebWTGMYbbtRwyt3KvTFX4366hR/n5AqjxC0z7Hk6iVSPS33s1DUE4b0LW1oCnDJh CNlNJC6GNVOjVRP2L1/9jFcg6DbXbReKrGUcSDclXpKvRZPqo5gls0cVXO2W9xCfZAYx Wg2A7jK96GJehqf93DfYtSKLob2lZSeoQKAOUIBpNkd6M3UgIWf8uBuoGRGA/MHH9nJt wf5+fudaGJ5TnWiBRJI1URcIuFtAIBK5/OOzzcl9se+Y+5YQeS5t7Xm70LcR1EsADBIh oRLEsradPL9K2QsO5Y5O1aTkapDvU78e2gvb3MJEAOYLSiTMaJaGehAkzXADm0kWtHAf xC+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ZnYOCbje+sb3JV62wl4oKJPwf2rfgXuLiPbr8Ir4ucI=; b=gwhITGl62MLufJ43ZwZEjbi3kY1pskzNVVpT17TDSAcExru5eVedYzsgHZa+jzwwaS o8cRq3KoBhKBboOOguvE8wy9YyvdYxkAVEgKsw4IMpTSP0Kc3Tye0WvbtcwWUaxADkMp dlaWGQKpabESx4FYA1zukhuKUcFBXEBXrYeKOjGC+onAmAjDg8Z3xHGbtEIxfI9NONCk jpHfx3mFxf1zdYpS+IVuCIk4zZ63+KnhQHOGyDXo0cObDDk9wjspBXXGl87WCrF5b7s5 Tz5FOJP5njNljQZo1fKE1MTDgQf5O6ghoph5LhPYU1jDu36Y8HD8tjMW9lZnVr25gry8 OEAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=uOggwq1Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h9-v6si13638866pgq.131.2018.06.19.02.47.00; Tue, 19 Jun 2018 02:47:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=uOggwq1Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756835AbeFSJow (ORCPT + 99 others); Tue, 19 Jun 2018 05:44:52 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56026 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755270AbeFSJou (ORCPT ); Tue, 19 Jun 2018 05:44:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZnYOCbje+sb3JV62wl4oKJPwf2rfgXuLiPbr8Ir4ucI=; b=uOggwq1QLbIYfYuvuJUg8WorP VQqhqRplVg730FZkjNykO+/AKG9Z71mzfT3t1tngszW4p0onwCgMWrdUen4hWouVotqG/wkzkuGZa yDlyh0slbYQsNRal9yd/nOxwuEZQ/giRebtN9ZsFYAmEM9uQL+xzHhkpb3zeBBkW8qRFMiOIj+F4a rhiizRFU/EJXbT1ld9CpKsFpJQi2Xb+Lhxvp/Z6sf3RsmW6MxuOUdK4CLQHEFpBYFk4qPUHsCTenp PmotjmlDgIsDCjVXe9kiARH0ZMTqhgvcsuyfe02kcNL2eMO/hGqhkLah0JePIhtf7IzMhJyXm+GAc msqtw5INg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVDBL-0001hc-Fm; Tue, 19 Jun 2018 09:44:11 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 80CA620268507; Tue, 19 Jun 2018 11:44:09 +0200 (CEST) Date: Tue, 19 Jun 2018 11:44:09 +0200 From: Peter Zijlstra To: Thomas Hellstrom Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-graphics-maintainer@vmware.com, pv-drivers@vmware.com, Ingo Molnar , Jonathan Corbet , Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , Davidlohr Bueso , "Paul E. McKenney" , Josh Triplett , Thomas Gleixner , Kate Stewart , Philippe Ombredanne , Greg Kroah-Hartman , linux-doc@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH 1/3] locking: WW mutex cleanup Message-ID: <20180619094409.GK2458@hirez.programming.kicks-ass.net> References: <20180619082445.11062-1-thellstrom@vmware.com> <20180619082445.11062-2-thellstrom@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180619082445.11062-2-thellstrom@vmware.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 19, 2018 at 10:24:43AM +0200, Thomas Hellstrom wrote: > From: Peter Ziljstra > > Make the WW mutex code more readable by adding comments, splitting up > functions and pointing out that we're actually using the Wait-Die > algorithm. > > Cc: Ingo Molnar > Cc: Jonathan Corbet > Cc: Gustavo Padovan > Cc: Maarten Lankhorst > Cc: Sean Paul > Cc: David Airlie > Cc: Davidlohr Bueso > Cc: "Paul E. McKenney" > Cc: Josh Triplett > Cc: Thomas Gleixner > Cc: Kate Stewart > Cc: Philippe Ombredanne > Cc: Greg Kroah-Hartman > Cc: linux-doc@vger.kernel.org > Cc: linux-media@vger.kernel.org > Cc: linaro-mm-sig@lists.linaro.org > Co-authored-by: Thomas Hellstrom > Signed-off-by: Thomas Hellstrom > --- > Documentation/locking/ww-mutex-design.txt | 12 +- > include/linux/ww_mutex.h | 28 ++--- > kernel/locking/mutex.c | 202 ++++++++++++++++++------------ > 3 files changed, 145 insertions(+), 97 deletions(-) Acked-by: Peter Zijlstra (Intel)