Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1671469ybc; Wed, 13 Nov 2019 02:31:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwc3oFAQdd3pp/cZbyz0y7ughkHkYwrbebCJPOz4EUlI4i1BrqJ+QkvDPUFykVbPSkz5rQZ X-Received: by 2002:a50:ff12:: with SMTP id a18mr2628649edu.200.1573641066697; Wed, 13 Nov 2019 02:31:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573641066; cv=none; d=google.com; s=arc-20160816; b=Rhr+uugWUwdx4cztAJke/G8oaAlTe42UXqLjEoXBMQ6aYpzNnbYYtMenBDlEbWjYCY G0O9/BCHrt3zGYRZzdT/bVM8DBSLLqD44otXZlW2FHz01dR2ATZZ5ErjKSaBRwGG3StA CH42jxlSXDk9y3IoReIxocHVutJt+1gONUIkD1/YO6wAifTDmh1jYAQWED7G6e0ZwZsv qic3zD1cnyl07pmYYH3pHt4c+n0QFrHfhmu5E9ZypHgaNa0YnvdE+XpUKjNvpwxVRD44 E8vFX28m7Pg10onHRuo+MMEpkOXO8T54uC7CNB2MKvuQEb6f/ZLvivEfXfjfZqFyM13Q pGAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:user-agent :message-id:dkim-signature; bh=RyqyoAhYFrTj8+rZhJNjGKFC5lrfWOjpjDnyEauhCYw=; b=zMMJmvWLrhkZLGq1YctXpC5OA3WNKaRL06ZaXs6KiQaXwN3NvKDs0u5LdBYHzHC7MW ApsU/AhXFSPHtghw5PmTNaTxZdLmB6c7Uvsp9EEIpOR1mZx9p3BiUKPEk1huKCQoCDVv MSVud/Z/9CJBLPVc02gNsHiISLK/F2vjZrj11x/XRfms1aUoECmN6m1YWKNUxxVilE6j nvSuMuC1VnZTCNA7GIQCWRn733DQlG1/LAx/+/AoL2HnD1Ku1UCD4MKo0SvnuAv0QYXd am4IAJFH7Sn6nLXT0xFfm+ZGcc+HdQk8dftDpZwfqIYMaE94bONVKa1n0OHaiF8Igh4y 83WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="I/Ur/iFd"; 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 jx16si883482ejb.353.2019.11.13.02.30.42; Wed, 13 Nov 2019 02:31:06 -0800 (PST) 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="I/Ur/iFd"; 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 S1727548AbfKMK3V (ORCPT + 99 others); Wed, 13 Nov 2019 05:29:21 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:34742 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727298AbfKMK3T (ORCPT ); Wed, 13 Nov 2019 05:29:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Subject:Cc:To:From:Date:Message-Id: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=RyqyoAhYFrTj8+rZhJNjGKFC5lrfWOjpjDnyEauhCYw=; b=I/Ur/iFdUYGNFsS0rr+gF+gNu GOEklHUHCwoMZ6axDHJ5oa3WJo1Ldm32mWrVGG3YerY3bmjhbCbeR3AfoYxeW/E9mdJERKCS7DKvQ E5FcsH6lwx1fVNj1jrr9lploDJPQye3mazlabCoZbdqgSS5ztaKjdl7ypiG6gyOTFKOcCPXi+ODZy eIBeYDiu9QFvFJy3Xztf5SXf19EEr4OMGs6ZVRsuypvLdGh2Kr1hamfdlOpzR+aXKT1jyYZRnEhUa dowzsjtMZ1rqkdORTbm1ea2sSJtlu2gCCN/BiqeUl/81TNvi+39nJy3UvpyrhtDtlFzS+2mLxnBxB 9zTrk+H1g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUptg-00073i-Be; Wed, 13 Nov 2019 10:29:12 +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 5D90330018B; Wed, 13 Nov 2019 11:28:01 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 934522026185B; Wed, 13 Nov 2019 11:29:08 +0100 (CET) Message-Id: <20191113102115.116470462@infradead.org> User-Agent: quilt/0.65 Date: Wed, 13 Nov 2019 11:21:15 +0100 From: Peter Zijlstra To: peterz@infradead.org, mingo@kernel.org, will@kernel.org Cc: oleg@redhat.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, williams@redhat.com, bristot@redhat.com, longman@redhat.com, dave@stgolabs.net, jack@suse.com Subject: [PATCH 0/5] locking: Percpu-rwsem rewrite Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yet another version of the percpu-rwsem rewrite.. This one (ab)uses the waitqueue in an entirely different and unique way, but no longer shares it like it did. It retains the use of rcuwait for the writer-waiting-for-readers-to-complete condition. This one should be FIFO fair with writer-stealing. It seems to pass locktorture torture_type=percpu_rwsem_lock. But as always, this stuff is tricky, please look carefully.