Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3487999imu; Sun, 11 Nov 2018 16:13:30 -0800 (PST) X-Google-Smtp-Source: AJdET5f2Y5EiMMkoa4IcmwVC4cfErDJ7QFsV5Ou5lAy7XIxt/WrF9UiP6bjhZoJhQ7EqWRkbamf5 X-Received: by 2002:a17:902:404:: with SMTP id 4-v6mr18209864ple.331.1541981610662; Sun, 11 Nov 2018 16:13:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541981610; cv=none; d=google.com; s=arc-20160816; b=qOQUcHDPdHcVJyHD4WGGW02jaWFZp9zTsRojIF3ZIRaVs4dXMfidgv5e/XC35ZJE34 2lYbI9NWy/9uiNMuTfBTayhoWW7gM4mScnvjdNwWP1ZIXoP/5GIUsXyhlnLIh01NXmii impPlUV/bIp5gd9g2DzP/tNth6BsRR8aA4GmyPc9De5erdWXXt9i62Btzm0+GTndnHjz 8Pd0PU11lUk7hSgSkLz4eogESjjNFe5W7p7g3d+emUrbuOBku6lItr2NlRCLff/MkFto r4VmwgkY5xY83jgfQHv6k6uW3lxkbo+jKUtWRA1dZiAvqoWHRL+PfvhiKA3H22b0/N/m nllg== 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=4PdzBjvYV7GribIfKWnTnyw2oELOvvEA5Bx4pMp6eCc=; b=b33IJYe0GsOIUsG2Igkbk0yg6xnb2c26CDujhuy5pX48DYafX6jMbqOPa//7KB5xET z1mjSDovprQS7+oeJaMCbz+pKWh7gVVhZS9jGmtmt4N3dKNjiOOTlxHrGL6X/XYNsw32 tngbM6mjonSTlfE4VRteH/36GYFtt2FazdNxbsn4rhXQ9PkYjjQYYo2ddjOp9L1LG9GC t5zOUwN5YQuuKdnpao0i39DdhtQtsbrkYUpL3AKUp3ee40FdD4Bkuierf8tQRsc23NNy O6iKMTpRBrmt6+eBbZRtLKA0EBy5s4uK+T1XVYRaD5DKIsw7R4ltKE4fKc49APN5Dd2Q hfzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=sgJGCcsC; 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 b24si4648086pgi.308.2018.11.11.16.13.15; Sun, 11 Nov 2018 16:13:30 -0800 (PST) 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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=sgJGCcsC; 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 S1730983AbeKLKDW (ORCPT + 99 others); Mon, 12 Nov 2018 05:03:22 -0500 Received: from merlin.infradead.org ([205.233.59.134]:35084 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730559AbeKLKDW (ORCPT ); Mon, 12 Nov 2018 05:03:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4PdzBjvYV7GribIfKWnTnyw2oELOvvEA5Bx4pMp6eCc=; b=sgJGCcsCYGo2fKYMms6AajQlU uD9vgz8TN9xsqJXaPhA0jgl11nhu5WdyY4XuwBwf35GBFslELOTbusRa1z6bPxI1DYCmpMCqBpQy5 yzJIVBtYocagLUIXlw1G/+GUXnwvOokq9TbgXJAoD1y6bUjZQWqYEoaqVECiRin51pxubJTW1eZEO haYOmsLg5agm7Dmu39YmWR1Mkoh7f0xQYNxfoufhMjbvFJ9V9I5auDoIjCsnr8qmdkWIr58IyK8cK pZFgRi/z+ntmWMhhVfyQiPd7WpmyvioRxd4orCXGpLKGLJDnR/7pVELLfbsMHC3kERe5ekVhKTFqw 21CIrcBrw==; Received: from [64.114.255.97] (helo=worktop) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gLzqE-0004N7-Pm; Mon, 12 Nov 2018 00:12:34 +0000 Received: by worktop (Postfix, from userid 1000) id 6A1C46E061A; Mon, 12 Nov 2018 01:12:33 +0100 (CET) Date: Mon, 12 Nov 2018 01:12:33 +0100 From: Peter Zijlstra To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org, Ingo Molnar Subject: Re: [PATCH tip/core/rcu 23/41] sched: Replace synchronize_sched() with synchronize_rcu() Message-ID: <20181112001233.GC3056@worktop> References: <20181111194104.GA4787@linux.ibm.com> <20181111194410.6368-23-paulmck@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181111194410.6368-23-paulmck@linux.ibm.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 11, 2018 at 11:43:52AM -0800, Paul E. McKenney wrote: > Now that synchronize_rcu() waits for preempt-disable regions of code > as well as RCU read-side critical sections, synchronize_sched() can be > replaced by synchronize_rcu(). This commit therefore makes this change. Yes, but it also waits for an actual RCU quiestent state, which makes synchoinize_rcu() potentially much more expensive than an actual synchronize_sched(). So why are we doing this?