Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3385690imm; Sun, 14 Oct 2018 19:09:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV63A3pc7exkACXhM8+LdmSsGCOm2a4BNQhOl1gYwUwdnHIaxyucScdXdLjzq/JmLd9wudvci X-Received: by 2002:a63:d256:: with SMTP id t22-v6mr14111398pgi.335.1539569346202; Sun, 14 Oct 2018 19:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539569346; cv=none; d=google.com; s=arc-20160816; b=iD4wyDYH7SxVSqvh2tjNlDs1Jftia90E7UAxcahj9+1hymFvGiMgVVZnphsR0/Vgn7 VC2jG3o7SF4vybghBDaPJhhD0BUfHAVCJs10DG2Ym7EECa0FihUC2FoujI7lb8z0mkTY Idv+F3gQwMdJiRuVPlngBt6QZsvOr2CasTuiwM3CYdJvs9gGqKbA3ak49p/18cI43v86 jINRHb10txPLLTiSfdagCLhgZQF0m0vWULl0UYIF4ioYoA74s1Uq19lMpJ5qSuApr93j /Jea4q9B8E3fz7vK91Kzh3NCkKXkzWsR3tGOAMF2CO0ecUlM7lm18ZsOvA3zi6WV0Z2k 8c7g== 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=WTRfclzQV0jRHnDDbzZPbGnILu6IWg6IJkTeeszvhZo=; b=UW4Kevzntlq7y9VXX4ValXQXmEufoDB1A9BuqXGHiADHj8gdmf8lCLdYjrOS+pXooT vwTytVrl5RWJP0d0TPlSy+ZO01knJT/zy7qibQD5H8TPxbike4QR2EvCbXXbhQAdunkr kUXYSi9NxGDcL9eW+G5OtHUy2RRUi8AxCMKsirmQW64yhXCjMcsUNl5mYP7Lfhn9m3HJ 8N7LldV5nDhYO4EpPhOeUVvEUOoa0V5o/TsnJ7vW5bNNkzR9X057XwvwyHoFlKfGNV5a gPN3kePmy/kb5kwUUuHtnGRYVIXZCaX2yv2DKkMQMy3jTWzBx+ZugETB4o0PK2+chhk5 XNFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=amj90ZyI; 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 h9-v6si9294442pfh.240.2018.10.14.19.08.51; Sun, 14 Oct 2018 19:09:06 -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=amj90ZyI; 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 S1726368AbeJOJvg (ORCPT + 99 others); Mon, 15 Oct 2018 05:51:36 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:43845 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726107AbeJOJvf (ORCPT ); Mon, 15 Oct 2018 05:51:35 -0400 Received: by mail-pl1-f196.google.com with SMTP id 30-v6so8475899plb.10 for ; Sun, 14 Oct 2018 19:08:30 -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=WTRfclzQV0jRHnDDbzZPbGnILu6IWg6IJkTeeszvhZo=; b=amj90ZyIVNHXNBoqVACxeFge43Gplo0G41a3/Bv0gCLO11s0+13OaJW73bn9MuI1On 4FzLGQpm7obct2ODA2+BWpN065CZA0n2nNAoF4gikOr8TWw0UxypLrR2GvTHio9L1rTF 0z8mf9maP01PkZRTCJZLj4m6SwYqSFt5BNNSs= 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=WTRfclzQV0jRHnDDbzZPbGnILu6IWg6IJkTeeszvhZo=; b=lwnK8LG1UTS1jSJ2RlaGMz7Ov6/oIq4LBOEqRgC4FVRYfRoLanTQs52GM/op6wQbKN i7Kz3yH1Tif1uAch0zBZQ3bZyQpjoL39Zw/KbOt2jPM9uzK/RS49MiZg3JnDMRINOK5w wr6KJjhNcmhw9N1TiXIDe4x4aSBG+JlRzLMjEhYyamttiO9Ew4T1BRbuw13FZQLuqCmi mjTYOrIoaQhYY+Czp+rCAoVShC1dtu+nGbQqGdtH5OqG2fAurjQmrQwnSGEHG3C8RvKg 7WMH1DNJf2oZgV4aoAHjPuRBW5YMRGmnBFuwqAHyjwnhHVQKbYjtPz/epVdz0xtn+yUb mOrA== X-Gm-Message-State: ABuFfoiot9Lzdjs01Ajib+Yaff0GsAuNAwDSh605HV6RLtM3joG+mI/t OGbcbTzHdX+Zfl0PleueCUOpQekh6WQ= X-Received: by 2002:a17:902:7842:: with SMTP id e2-v6mr15204688pln.104.1539569309954; Sun, 14 Oct 2018 19:08:29 -0700 (PDT) Received: from localhost ([2620:0:1000:1601:3aef:314f:b9ea:889f]) by smtp.gmail.com with ESMTPSA id u36-v6sm19451289pgn.56.2018.10.14.19.08.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Oct 2018 19:08:28 -0700 (PDT) Date: Sun, 14 Oct 2018 19:08:27 -0700 From: Joel Fernandes To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, Jonathan Corbet , Josh Triplett , Lai Jiangshan , linux-doc@vger.kernel.org, Mathieu Desnoyers , Steven Rostedt Subject: Re: [PATCH RFC] doc: rcu: remove obsolete (non-)requirement about disabling preemption Message-ID: <20181015020827.GA217384@joelaf.mtv.corp.google.com> References: <20181014212955.95267-1-joel@joelfernandes.org> <20181014231731.GN2674@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181014231731.GN2674@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 Sun, Oct 14, 2018 at 04:17:31PM -0700, Paul E. McKenney wrote: > On Sun, Oct 14, 2018 at 02:29:55PM -0700, Joel Fernandes (Google) wrote: > > The Requirements.html document says "Disabling Preemption Does Not Block > > Grace Periods". However this is no longer true with the RCU > > consolidation. Lets remove the obsolete (non-)requirement entirely. > > > > Signed-off-by: Joel Fernandes (Google) > > Good catch, queued, thank you! Thanks! By the way after I sent the patch, I also tried Oleg's experiment to confirm that this is indeed obsolete. :) One thing interesting came up when I tried synchronize_rcu_expedited() instead of synchronize_rcu() in Oleg's experiment, I still saw a multiple millisecond delay between when the rcu read section completely and the synchronize_rcu_expedited returns: For example, with synchronize_rcu_expedited, the 'SPIN done' and the 'SYNC done' are about 3 millisecond apart: [ 77.599142] SPIN start [ 77.601595] SYNC start [ 82.604950] SPIN done! [ 82.607836] SYNC done! I saw anywhere from 2-6 milliseconds. The reason I bring this up is according to Requirements.html: In some cases, the multi-millisecond synchronize_rcu() latencies are unacceptable. In these cases, synchronize_rcu_expedited() may be used instead,.. so either I messed something up in the experiment, or I need to update this part of the document ;-) thanks, - Joel