Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp441396ybt; Wed, 8 Jul 2020 03:46:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwESI7trP/sVFhPWOm/fmyImnqyrcgvtgRbuduP5lQGBsJlB/AZA5oe1HmnchzlQ6MOJPff X-Received: by 2002:aa7:c545:: with SMTP id s5mr53097772edr.19.1594205186287; Wed, 08 Jul 2020 03:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594205186; cv=none; d=google.com; s=arc-20160816; b=Ic5MQkHxkbkovnDdLR/JuLaMxGO2ZEaExrxSa7y9P7SOx0LLYqqSZMPy+V3p6i8GWJ T4w0iJJfbkJBx/n9OjhYjVDvHAzgQ9Y8TqhdpYQQwK9wbP512sOZDPQZ2rzjxCdTTlaM sL7L8BvuI+Y9nRvm/5V/qOtcrqWJXSf7co2VKU7uQ0UFETDf7GDY74e2FMVAc81+9qEw sVI4ymn70PRRsHItHlyQSj0FcQkhugiOEaSxtWDeQfmgp5y5WE+nfkPRYoaDSmn7OR9V G/4Beqz0xHFcrCshP//AjaiNLzESHqDJZghkn8HAt6FWUd0xRpqy2MAnTBEzOfEFjEvW R4RA== 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 :dkim-signature:dkim-signature:date; bh=XEK85sVO3ycL8JSzZJh27ifOb3CbGrfZXgz/86KqZqY=; b=WXqr64nC0GcJOAqhrsNIhwrYcPTEsP+b2e4L5BA5LjOETULWbamjuRady4nTKt6Zk1 p9HJNchVJsDcLt2B1vuMnuSvkXTdycdyQM+e/YMw/Ssn7R9Wblq+Bzm7X+irX10XlYIs SdNohIS9m3EHXrHWhOk2wZd5rUqYJTSqLprAS6FGCJZF9y/AzcYvAHixe/5TkNGb8N1t GPDuWozIQD3CaT3s+P3bkc+aHNWTOfVY8iV7+IvLDntp4CF9+5nOLOt+aMmXtt+xLzgH Ics7NHuakB8Uy5//HrTqJAfWKxkBVevCnQiBEy1cieQGtvFi9+ag+ldNRtrWM1NXirdj MlZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Km2dikJL; dkim=neutral (no key) header.i=@vger.kernel.org; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x22si16679438ejj.461.2020.07.08.03.46.02; Wed, 08 Jul 2020 03:46:26 -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=pass header.i=@linutronix.de header.s=2020 header.b=Km2dikJL; dkim=neutral (no key) header.i=@vger.kernel.org; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728622AbgGHKny (ORCPT + 99 others); Wed, 8 Jul 2020 06:43:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728104AbgGHKnw (ORCPT ); Wed, 8 Jul 2020 06:43:52 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2F26C08C5DC for ; Wed, 8 Jul 2020 03:43:52 -0700 (PDT) Date: Wed, 8 Jul 2020 12:43:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1594205031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XEK85sVO3ycL8JSzZJh27ifOb3CbGrfZXgz/86KqZqY=; b=Km2dikJLJ0F7mT6kUvVrBd+IZvL6FcWRGw/Pp/jl/PwVvb2UhkIWv0SLEDjNkVVvE1/Tbn xDi7e5sj637Kjhekrr7Rdc55T5gqViHbTpsFYDioiwJjJNeoY5XRmdj1hiTENNoainHH5y jJj+v/PM10sE0DSStRY8MKk4Uogp8pnCpWsGIC9NVsj5Iymu0KrDE/bIdfyx8S12EC6nWh gt/kpoXLuQK9zY4bjRcZqMsiMNdf8hjCpK17R31GZ0CrTwGYi+H15UecsnNSWGlmytTbDy WNxPpvCX1wGTVGsjLktJhDOblX3riWLjfWtPAsNn3PG4mKM0PScC5t9/hjf8xQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1594205031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XEK85sVO3ycL8JSzZJh27ifOb3CbGrfZXgz/86KqZqY=; b=fou7JYZt3+pJkGYalXVmhnXpo3VVX8qNT09pwoKP8q8A8KYUKb9waw8qOlS5vIYmtBE0y7 x+9Q3IKr/Bg9s6Ag== From: "Ahmed S. Darwish" To: Peter Zijlstra 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: <20200708104349.GA20372@debian-buster-darwi.lab.linutronix.de> 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> <20200708091201.GP117543@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200708091201.GP117543@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 Wed, Jul 08, 2020 at 11:12:01AM +0200, Peter Zijlstra wrote: > 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. Hehe, why not. I welcome back our ASCII overlords.