Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4768437yba; Sun, 12 May 2019 22:14:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvtXcCTTwH+bTmBfPImz1I532DvnI6sx/fGuxWWpyGLH5SUw8raHvPmYMw6RGri+yWPg8b X-Received: by 2002:a63:246:: with SMTP id 67mr29060380pgc.145.1557724490842; Sun, 12 May 2019 22:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557724490; cv=none; d=google.com; s=arc-20160816; b=VvJdumpxijX3L4uPbXPepz9pX2fjdM+SAY4WFMqidSzmY/f1PFOAsT1Umln8tPQq+t 5m9Sc7rH7dNheEWQWDhhK+JqK75Rwx/FCID3P5obdv+UucHazcJ4s4e7u5rulT9BUjCB yEOJpWzgAkZAijxYbvurxhbemN+lxo6kqJ70Cq9IMqN+q9YgmxAx51iCoEYldufY6CdV iloHXOJHlX9mZLXQpN+gax09u2LyY8LKdgSldVwRFPAK1iDKd9gevIJurOvDaHW5NIbg 9IkUw4vDmaOFyjb9vmUxxH5gDj22HalCVrr/2h/dtW0EQl79i3Xm05oGE6DnHL7JV5Kd nBBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ezchhs2/JcNwmQ6qp2kyJmiYA74has20Z3uFmOgfa5o=; b=GDj0Zvw6677u7g54T9TBjl1OHb7PPyusakhsf1j8m8DYEaucuqAlL+B/e02gcj+9Fw VHVlc4JdPfZcXeUpk4wJX6pdWWqOubbjYU9wQFnvnmnPAH/HL3z597/+ZBRvZdbB7dbX CraTsPpeWcKCQgJTzQmRrv66k0PrXlm3eC/7QpIeNPq8TdlRIUvrdcG5D4NP3enRi5YA nJhJTuEUiVL3LoXfF2tYsjxZE7ZZyG30Med2skOLi0jtMzeKeWLt0mI6sf4RCKD6HAhb /GjS+8NN5aCCm1w6gDdEiCuxiTWxxccSTOglTHS0T5LQWwUdZQ6dmvBLFt/P84wHczfE 7Aew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=ps6UOT3T; 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 b15si13102401plz.359.2019.05.12.22.14.34; Sun, 12 May 2019 22:14:50 -0700 (PDT) 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=pass header.i=@joelfernandes.org header.s=google header.b=ps6UOT3T; 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 S1727539AbfEMDnI (ORCPT + 99 others); Sun, 12 May 2019 23:43:08 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:33223 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727282AbfEMDnI (ORCPT ); Sun, 12 May 2019 23:43:08 -0400 Received: by mail-pl1-f193.google.com with SMTP id y3so5732650plp.0 for ; Sun, 12 May 2019 20:43:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ezchhs2/JcNwmQ6qp2kyJmiYA74has20Z3uFmOgfa5o=; b=ps6UOT3THA5KJfxvls/ZxlAY0ZVXlFvwiLLmm8vGbvHiwP97A9THs/tJmi9C1snr3Z VtpUeqIDBspGhzwpC9q+IZM/sodI1PAEtn5bUUO2H4TB+yWFSf7cuXh/53LCrq/8KAhO wqpPJ6ribAqXxGm7ZBeMgtqtdepH5mq8Y40x0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ezchhs2/JcNwmQ6qp2kyJmiYA74has20Z3uFmOgfa5o=; b=OmtyvhG6So73tZzxZ18i1YEbfzwRLSJHdDIWP6+5MRwKLFPEnB6Dj2tW+xvDnyfB/e 2AyyIIMV/MSfJblTsRxn8u6AWhpe5P73cXmIq3+tXFq0WXEl8FkaqH/6i5A94e8XowNv I0UIBJhF+R0Jx+QfUsRRXCb44AFhlX09KFCrxxnhpely2Q50iUA9vSuAwXlVaRNoHwTZ 7zrK5F1C+1coRr+4yILTcuQDL11nSQAfEHr3lCTeZEeqvqm+TfZMdVOqatwxNEDamEJZ 6qhRvukVRmTAXasL1NcZBGpqfbCwH7NNc0276oulfKB5xe8yqtjil/LdZPfkjJR/G9A1 xrzA== X-Gm-Message-State: APjAAAXUpO0/Xjx0ok8JCAYRcgNDkWxJVjzgllaHBurFx4ILVxqBH1Rk VTJnywoVmkWYLjVfFa4rYYBLiQ== X-Received: by 2002:a17:902:e785:: with SMTP id cp5mr9385277plb.167.1557718987582; Sun, 12 May 2019 20:43:07 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id l68sm20321949pfb.20.2019.05.12.20.43.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 May 2019 20:43:06 -0700 (PDT) Date: Sun, 12 May 2019 23:43:05 -0400 From: Joel Fernandes To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, rcu@vger.kernel.org, Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Andrea Parri , Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [PATCH] doc/rcu: Correct field_count field naming in examples Message-ID: <20190513034305.GB96252@google.com> References: <20190505020328.165839-1-joel@joelfernandes.org> <20190507000453.GB3923@linux.ibm.com> <20190508162635.GD187505@google.com> <20190508181638.GY3923@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190508181638.GY3923@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 08, 2019 at 11:16:38AM -0700, Paul E. McKenney wrote: [snip] > > The other example could be dentry look up which uses seqlocks for the > > RCU-walk case? But that could be too complex. This is also something I first > > learnt from the paper and then the excellent path-lookup.rst document in > > kernel sources. > > This is a great example, but it would need serious simplification for > use in the Documentation/RCU directory. Note that dcache uses it to > gain very limited and targeted consistency -- only a few types of updates > acquire the write-side of that seqlock. > > Might be quite worthwhile to have a simplified example, though! > Perhaps a trivial hash table where write-side sequence lock is acquired > only when moving an element from one chain to another? Here you meant "moving from one chain to another" in the case of hashtable-resizing right? I could not think of another reason why an element is moved between 2 hash chains. I just finished reading the main parts of Josh's relativistic hashtable paper [1] and it is very cool indeed. The whole wait-for-readers application for hashtable expansion is so well thought. I am planning to go over more papers and code and can certainly update this example with a read-mostly hashtable example as well as you are suggesting. :-) [1] https://www.usenix.org/legacy/event/atc11/tech/final_files/Triplett.pdf thanks, - Joel