Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3234936pxu; Tue, 8 Dec 2020 07:02:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjxmM3VMlGQtcFRvWYWhhIACVMdV/PS7PRPzpi9qLNoJpGHcGN3ppUcPwqg/lV2iCRn99t X-Received: by 2002:a17:906:c51:: with SMTP id t17mr24301494ejf.523.1607439721040; Tue, 08 Dec 2020 07:02:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607439721; cv=none; d=google.com; s=arc-20160816; b=V2YsoZylcTP/R04JrJsHVyjTA+93yUHicIFEa/c1H54QD17wsugQB9rlqDmfWfWKzT xjrlpigOG+hqn+qo/zlpZ58oUKNpio0d6l9pKfjtpuD9CQhu3mqpXQQ/obGh8kJjJrOm ORUnbapA/QbDGEoDAURWhK3UBeiecOZUAgj4/OG4+TlZCQqj1Wtp5+YsNJk64WJoNjwu XcGaHPBYH6CXZuusNkboBzLCKH6aIfYSlt36o+2Lf14Q86QL9X0ftxDP/XhLqPFPJdea ExWWdDBw59cHj80lxI8wCLp+CqS4t/Tqc0PKQbFek/J/g+Dj6xbE7IYGwTHsCT93MTU5 IzIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QhrUYq49bSuAo1dMLqIMqOl4H3E7qyXyy50oBZwc848=; b=QgTFwYZr8UdNEcBijnYCj0CnYIl1bvwrbKxo7WcoS1/JYmurWQ1sYQgBB1utMxL8a1 8mcC21o0YVquYVz09Z0uD3eHja895PXuG1pCR30L0IYnEekJw0zSmmHPDTxbEpiJHhKC vIIZUkHyxTbYYVhlUGXaJ7ueS+/zYdzJoTOG4caOLyheO3JF56LijbKOz0Q8LZYS9aDt pimS+yPjSbs0FOaYFOG6yo2zwhzyCS23UiG9w4HzwacFOXMyXq0GczC4+YtrAeuqSOx/ CCzcs4sEHFvY42wjtXj1kR2Y1N3GWTT1zCh/CIMB3/2f4M2pLaE4nFMXzDC0r8y/5NLm N6SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=vzyXrRgs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v13si10200891edr.464.2020.12.08.07.01.37; Tue, 08 Dec 2020 07:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=vzyXrRgs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729965AbgLHO6a (ORCPT + 99 others); Tue, 8 Dec 2020 09:58:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729441AbgLHO6a (ORCPT ); Tue, 8 Dec 2020 09:58:30 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 555BDC0617A6 for ; Tue, 8 Dec 2020 06:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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; bh=QhrUYq49bSuAo1dMLqIMqOl4H3E7qyXyy50oBZwc848=; b=vzyXrRgssGaCQwAHJHtWWK2e7K 2DTPj0ahGGdUc13MoKFzt18oHHAWdSbbtez31WOfnrIbZJfF9sxzrLBJvw1R7O7tp/H+ZZ38C5w9g rBR2IvWaVCnWUNXaCyH1/c3bdULS/HzqwBVdqSwCrRs6G0nK5BE7mwVa5OkuDZvNjfefP75y3oghf jHyr+8hEVCb/zIixPwS070eS9UZDXcKB4qL+QmfZ2ruMWMjV41teFaFIa4s3VbIQRwCDJgvw0zbU+ xVP5AxNB5TrFv0Evhy1sEQoxa9gxfWcXUZGPx74Ts5amdibEmMxwKssmfpydIsegdaWW16Rja8IIl HY3oM8sw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmeQy-0002BJ-S7; Tue, 08 Dec 2020 14:57:45 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 7E92B304BAE; Tue, 8 Dec 2020 15:57:43 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 63DED21ADBEA0; Tue, 8 Dec 2020 15:57:43 +0100 (CET) Date: Tue, 8 Dec 2020 15:57:43 +0100 From: Peter Zijlstra To: Waiman Long Cc: Ingo Molnar , Will Deacon , linux-kernel@vger.kernel.org, Davidlohr Bueso , Phil Auld Subject: Re: [PATCH v2 0/5] locking/rwsem: Rework reader optimistic spinning Message-ID: <20201208145743.GF2414@hirez.programming.kicks-ass.net> References: <20201121041416.12285-1-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201121041416.12285-1-longman@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 20, 2020 at 11:14:11PM -0500, Waiman Long wrote: > Waiman Long (5): > locking/rwsem: Pass the current atomic count to > rwsem_down_read_slowpath() > locking/rwsem: Prevent potential lock starvation > locking/rwsem: Enable reader optimistic lock stealing > locking/rwsem: Wake up all waiting readers if RWSEM_WAKE_READ_OWNED > locking/rwsem: Remove reader optimistic spinning So I've munged the lot onto the other rwsem patches and skipped #4, I've not even boot tested them (will go do so shortly). git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core