From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-5.6 required=5.0 tests=DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id 35BFB7D043 for ; Tue, 19 Jun 2018 09:44:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750861AbeFSJov (ORCPT ); Tue, 19 Jun 2018 05:44:51 -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-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@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) -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html