Received: by 10.192.165.148 with SMTP id m20csp307833imm; Fri, 4 May 2018 10:38:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqCoFt9Pduue0eRqQHRXLMlPA+sDWYYoHHEknehysA0s4vqrGQGhVYi3UUyBmEwMAd0U7GJ X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr27939104plb.299.1525455481394; Fri, 04 May 2018 10:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525455481; cv=none; d=google.com; s=arc-20160816; b=hsDrDxdBpgKapUn9xOxc0H2Qu+4X67O7NFzXhPcvSuy70H1pu/b2ZRWtlgMXfNGrrW B7fZFxNkMLBXnFP3tUpuciINkufLfpiw96FGap7UIhHiWHtRaiL9kxDqV5QFPkQJQm3B 4zSyh9x2lXwjc25PSKfhkA0FUdYcTrGh8iPa6jIhTfJsHZzMi4qgRvTeg4xKUgiwFmr4 BNkiCtbPRZFVrh0zGtDmUHDgaylcjjRK7rnX+tZh5pMtfw7ucgK7gHUk0wbn+ZspJ/jh 4QejKVRgwitdUNadO2GkznrseEpdqCNlLcJwSg5u4LF63u/GLp/jVwdGP02XCuCWjiYi UdiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=KtNlDreAgJMksrR3+Jva4riN8odQHb3iHz8AD3Owkpw=; b=iVn1NPsKsp5vkW35DJVO1gQH6tRezK6ymfNNHZOJGwtw8Df4DetD92KCFzSnoj0Bq+ Nj0qSAlZd+JzXfW/8AGrZQyjiisqo0mL5gTZId8l7/zDHrc36KRBYQb5ORKYY9FenakH BWf8dYV1d3uYXYQb2lrmrRvJUPiaoJlwImALw1op81W15ncXY5BOH1es62MA5kIO3nSz 9/9y9XnUjZs7cqj7vbOs0mWc9EK1ZGHh16HWI0ku48EVOaaSsM5OxN//h9QtGkBKaWJu Nihkt9oh8ORsbmcZpEEBClTIU6rn+U0zxxPC7acE/+QyrkOog666JU0x24RXxX/KqmwY /sfw== ARC-Authentication-Results: i=1; mx.google.com; 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 64-v6si15720324ply.528.2018.05.04.10.37.47; Fri, 04 May 2018 10:38:01 -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; 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 S1751710AbeEDRhb (ORCPT + 99 others); Fri, 4 May 2018 13:37:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:51790 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751579AbeEDRh3 (ORCPT ); Fri, 4 May 2018 13:37:29 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 944B221783; Fri, 4 May 2018 17:37:28 +0000 (UTC) Date: Fri, 4 May 2018 13:37:26 -0400 From: Steven Rostedt To: "Paul E. McKenney" Cc: Joel Fernandes , Mathieu Desnoyers , LKML Subject: Re: rcu-bh design Message-ID: <20180504133726.3f04d7bf@gandalf.local.home> In-Reply-To: <20180504173205.GQ26088@linux.vnet.ibm.com> References: <20180504123050.2841f80d@gandalf.local.home> <20180504173205.GQ26088@linux.vnet.ibm.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 May 2018 10:32:06 -0700 "Paul E. McKenney" wrote: > > > But preemptible RCU *does not* use context-switch as a quiescent state. > > > > It doesn't? > > It does, but only sort of. Ah, my confusion. I was thinking of rcu_read_lock_sched() as "preemptible RCU", not the "we can preempt in rcu_read_lock() context". -- Steve > > A context switch really is always an RCU-preempt quiescent state from > the perspective of the CPU. However, from the perspective of the task, > context switch is a quiescent state only if the task is not in an > RCU-preempt read-side critical section at the time.