Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp382925ybt; Wed, 8 Jul 2020 02:13:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyw1WLZvPAfznUbvj58sa87gP4mTGT12BkfGXnVhRMy+RlOEYrwpFYGDMmKioRzGuXRWtT X-Received: by 2002:a17:906:6d56:: with SMTP id a22mr52588070ejt.440.1594199613189; Wed, 08 Jul 2020 02:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594199613; cv=none; d=google.com; s=arc-20160816; b=oArFlOpkELn0hSMmo7K0/eQ1UeUcJpzPCwjT5MRbZgsut7R99aAoWlLK+zr6GQr45M MVJpAaSpbFRKIjJWLEaWnSH7ReCObHr7jc7qBdjZi5lsjgFJkG/Rgo1INQGRvu4W6Vey AaD+0F3GINJZTrGgrkb2Qi3OvfDqLJv0SJJTckmYcTP64NZ/nO0KKhZsQ++csgY29s2M 8jglTgnmcSlfGhZ9w/rlOJAHlF5Z3suVEcmGqCDSYlIhrJfGUrt2MXU90Hm4IijdrRdx bKKwFUmPjvkiGBZsUT+O1mycvCHWWTkz+KDoDbmNPCfn4/sg1Wm+IGD3wdcx3UCA78hf AHzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=eNfnia1zIEwFXAVe3ArSMXxA9lLI4nhBIytQMA82G40=; b=euEM2lRzBrIaIOF+pIUblbXFnCjHwV7qXLKvTlk6vX/dOZj92Ec8N6NzqGZlsXZO0w SWzuIYpmrMODsch8ONBqNyKKxWbgpmSnGwrFdAbzWjqvy8fpKxsgzTOses8wdWt7eGiI 9AbxVQpKH9Sp0YUX7JxPAASeqFO93rK90HfCmbRz+0ilA3EkrmKt+pv+mvIOjmRVez3J 37ZOOKvWP5T9v4xXALZmeb78Xiz5UqkgnvCOYfCy/5oFwdEJw346But6zXEyKr0UTYF8 oTnI7nBvLXGdQXw7eR+hz9Ilai2m1V9VXz7F661rrU7Gt/2EyQfrbQgdf2V/c6GUmHIe gplQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=DAsgmM1C; 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 ly20si16509016ejb.607.2020.07.08.02.13.10; Wed, 08 Jul 2020 02:13:33 -0700 (PDT) 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=fail header.i=@infradead.org header.s=casper.20170209 header.b=DAsgmM1C; 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 S1728115AbgGHJMx (ORCPT + 99 others); Wed, 8 Jul 2020 05:12:53 -0400 Received: from casper.infradead.org ([90.155.50.34]:58324 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728102AbgGHJMv (ORCPT ); Wed, 8 Jul 2020 05:12:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=eNfnia1zIEwFXAVe3ArSMXxA9lLI4nhBIytQMA82G40=; b=DAsgmM1CZbQ2E6pa/16EJ1asf2 5cVZwcve5zkPSOmP/IVITPHDDsGVjNaY0iSvGrBw5K46ET3EDuaJpDAo0zZVMWt8LumpvDN+aNLeN u3AnWWNkAvj3i4525tx1cnB38jXZE00CEEL8N2IKBpCe3b1TT6iaFarsZSoVHciR3MdFDLdccOviX H72VbRq7NCuDMWBQ4znqzkA2hhMfuinVDA1NQpukg3y51wJmZ4rExdGS1/Vks/U55BTk49R1a9l/Z RggdrElfcx8prsKrzF/EU3XVREpZRoqEtPFBZo8kT6aZOqoIJkj+dwFoJUUMtwcDfkoheI9ag4oyx igTLy5Mg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jt67X-0001G0-KW; Wed, 08 Jul 2020 09:12:05 +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 D27B7300739; Wed, 8 Jul 2020 11:12:01 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A5876212325C9; Wed, 8 Jul 2020 11:12:01 +0200 (CEST) Date: Wed, 8 Jul 2020 11:12:01 +0200 From: Peter Zijlstra To: "Ahmed S. Darwish" Cc: Ingo Molnar , Will Deacon , Thomas Gleixner , "Paul E. McKenney" , "Sebastian A. Siewior" , Steven Rostedt , LKML Subject: Re: [PATCH v3 06/20] seqlock: Extend seqcount API with associated locks Message-ID: <20200708091201.GP117543@hirez.programming.kicks-ass.net> References: <20200630054452.3675847-1-a.darwish@linutronix.de> <20200630054452.3675847-7-a.darwish@linutronix.de> <20200706212148.GE5523@worktop.programming.kicks-ass.net> <20200707084024.GA4097637@debian-buster-darwi.lab.linutronix.de> <20200707130410.GO4800@hirez.programming.kicks-ass.net> <20200707143726.GO117543@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200707143726.GO117543@hirez.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 07, 2020 at 04:37:26PM +0200, Peter Zijlstra wrote: > + * Use the ``_irqsave`` and ``_bh`` variants instead if the read side > + * ``_bh`` variant of write_seqlock(). Use only if the read side section > + * ``_irq`` variant of write_sequnlock(). The write side section of > + * ``_irqsave`` variant of write_seqlock(). Use if the read section of > + * ``_irqrestore`` variant of write_sequnlock(). The write section of > + * ``_bh`` variant of read_seqlock_excl(). Use this variant if the > + * ``_bh`` variant of read_sequnlock_excl(). The closed section must've > + * ``_irq`` variant of read_seqlock_excl(). Use this only if the > + * ``_irq`` variant of read_sequnlock_excl(). The closed section must've > + * ``_irqsave`` variant of read_seqlock_excl(). Use this only if the > + * ``_irqrestore`` variant of read_sequnlock_excl(). The closed section > + * This is the ``_irqsave`` variant of read_seqbegin_or_lock(). Use if > + * This is the ``_irqrestore`` variant of done_seqretry(). The read Can we also get rid of that '' nonsense, the gods of ASCII gifted us " for this.