Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1174168ybg; Wed, 29 Jul 2020 07:38:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5sWxbiEskO4+WWYIfnnvWvEzfggmw8HFkhrmiG4LyXLqVyDSJ6ixNFG5PSc9rqZgyeIFW X-Received: by 2002:a50:ee0a:: with SMTP id g10mr3169966eds.289.1596033534069; Wed, 29 Jul 2020 07:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596033534; cv=none; d=google.com; s=arc-20160816; b=WPctxKdGf1Oxebuf9fwB4fE0TX4Mc4t2KemYw/snInyaVTW0UBWU2QRloztT65nvN3 tLktMecKNeKnx3n58luwkTWWH3MRcGBd/ncqdQ3jXFrAWBTsyOMeqE7GGP57HODOp0DI 6uvpO1yF4/ByOP+MYPay7ofa46/CGKpLUy5Uze4EX12VnZCJt+qR7cPkJ6PT0KvoJt02 X5YGNZC+Gr+fTPzZfxZQvv8vW3E4iTwygCwebAhR+g2ZBr/pW6OWxjD4eA69hZ2lFFnk EjFrU0oO640hb+l8HqZnt554ujAD+KxUgiiKYDJnejG7dgaiwRqjW0ZKt4rleu+72pDw XeRA== 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=bAHTxzN0gWTh+MkrXmdjO8wWMvKGi2+w2dVS7q7UmIA=; b=bKYE847nVfnwhnAxzyHdsFSb3Cwhj9XWZvc9CJv6FmC+1MVd18FAJpi03ZiXhsI+oW yAoM+O1ngEWTlMQS7YAtn45lvxQyuKY2PC7xBs1BXNc7A2TedAbPnOx4ff7XZIMzgWbD 4NFZANY8i446WM3PzLnbRQQxi9MMP+ycn+Vd4pCE3HS6LR7SB13OqUtBZeqOTWXTxcf2 Uio0nFvSrZzOqlbfk79NwkM3IJqIDsfO0k5pm9jbwN0FYRTPdF2/4wAwkS5/ODouaqOn Oe28OgV6b2hppTFjecrv9YRsjdf6xMQcej3mej5jfBZHyl22aJ7Be0gby8HZssmb9jXr bNcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1itXZ31S; dkim=neutral (no key) header.i=@vger.kernel.org header.b=PywhQY25; 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 v24si1465272edl.35.2020.07.29.07.38.32; Wed, 29 Jul 2020 07:38:54 -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=1itXZ31S; dkim=neutral (no key) header.i=@vger.kernel.org header.b=PywhQY25; 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 S1726819AbgG2OiX (ORCPT + 99 others); Wed, 29 Jul 2020 10:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726353AbgG2OiW (ORCPT ); Wed, 29 Jul 2020 10:38:22 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B05B1C061794; Wed, 29 Jul 2020 07:38:22 -0700 (PDT) Date: Wed, 29 Jul 2020 16:38:19 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596033501; 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=bAHTxzN0gWTh+MkrXmdjO8wWMvKGi2+w2dVS7q7UmIA=; b=1itXZ31SArjIuGoL4PExFbXtkgMxC5azgL0xmChhJY2ltok7CIABL0I95OeeX7hf4lS4tO fLqTuB3wdXRf+kmvufiFnB88T3Ma3QB+7MOlEySedh2bbO5AFbgI8HztI32nR3FPpZrbxj PbkpmnIQLjcNMRvdcxQbr6GdDAUC0tQJBFh/Cu2hdh/CYCbT6XKQorZd8Vj0M7iKAlWdpA /O0XIxVnJceKWji8CrErxqz03BB87sOCHs49z31kDA+21pPLQDZ+GFpM2y30RMXbgp1Tlz qHCw6Kf8SE3BZhLbe+3GSLxbnKjdRNONGjUE2gYJCGnMoyN6z4abuLPtLOoJZQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596033501; 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=bAHTxzN0gWTh+MkrXmdjO8wWMvKGi2+w2dVS7q7UmIA=; b=PywhQY25QMA1AQd1RSwETL1HDSundZ9b/3rlD+pBu8J+i61dUjNB0QWpc3YHodqdVbgqBJ VqexUS48xwXk5RBA== From: "Ahmed S. Darwish" To: Peter Zijlstra Cc: mingo@kernel.org, will@kernel.org, tglx@linutronix.de, paulmck@kernel.org, bigeasy@linutronix.de, rostedt@goodmis.org, linux-kernel@vger.kernel.org, corbet@lwn.net, davem@davemloft.net, netdev@vger.kernel.org, linux-doc@vger.kernel.org, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 2/5] seqlock: Fold seqcount_LOCKNAME_t definition Message-ID: <20200729143819.GA1413842@debian-buster-darwi.lab.linutronix.de> References: <20200729135249.567415950@infradead.org> <20200729140142.347671778@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200729140142.347671778@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 29, 2020 at 03:52:51PM +0200, Peter Zijlstra wrote: > Manual repetition is boring and error prone. > > Signed-off-by: Peter Zijlstra (Intel) > --- ... > +/** > + * typedef seqcount_LOCKNAME_t - sequence counter with spinlock associated ^ associated lock > + * @seqcount: The real sequence counter > + * @lock: Pointer to the associated spinlock > + * ^ Pointer to the associated write serialization lock > + * A plain sequence counter with external writer synchronization by a > + * spinlock. The spinlock is associated to the sequence count in the > + * static initializer or init function. This enables lockdep to validate > + * that the write side critical section is properly serialized. ditto, you forgot to change the associated spinlock language to generic locks ;-) Thanks, -- Ahmed S. Darwish Linutronix GmbH