Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2226431ybi; Mon, 1 Jul 2019 08:19:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNRSKYC6V/pnF3fZLnKXldL+cjQizC9eM5144UkvELM6sFQT6PbKdoIBn00lOrqZeZEOvQ X-Received: by 2002:a17:90a:c596:: with SMTP id l22mr32155617pjt.46.1561994389390; Mon, 01 Jul 2019 08:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561994389; cv=none; d=google.com; s=arc-20160816; b=zuW95ucqUttBwmQW3/iTnWYknQ4UR73+zM70AFj1BKJ9Eg4wKztiXRV7lSEW01q1b9 OdrOcaeyxL0chcxbC/na5taRiHeMPcQ3FqXQxaKRIUvsAulLoz5kBiey/YMl/wLGkmzx ai1oF4R+EwpTi5mUZSPv09HjwP0C26i9g7f+mYVfjT0nn7oLRo9WsZl5WJAfbHMCphF2 vf/+IUhA0Vb7bUFAfaAUje1jRzCU71vPQwYThH71L4g6cOWF92yQC3wagr5EhYgwYSt8 kc+a3g34QwlfC3nLnwC3p1bJkJRDPd8vlGb5cFooH3Y2Mgm1j7XIF0z+646yuaRqY/J+ 75eA== 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=CnqcdAZEqlhe5AvSTX+V5wDK1OqDo6RCXWT/qry/0jg=; b=MIruyahR59ZmduhG+3Bked67Q+qBN3RIE3Nxl7I4v7eWPffpyf9v2/7kjTnKoQe0l+ oO626SADOO5vAS3jrLiMQIvXZarpUPxZMdLhi1Vr9wfCUoKEjez1TC7ISqvAjJz+FYyC KIvhwkBFTx+otaDVQywMyGxNNV/ghCfuZPHrCK+gpBZWqdpaLEHn7qTOi7kJPL4hFHRM lWZobG3UViAhUq/dbEDAM8l3YILSWtUwqe7kQoDQJ98QrpIDV92xV4guBZXlEf8354pU E5eA9BekvHAs5uL81xDEUssVeIp0y8ePRsXuFekblwMdZi807yvQ59NsXfbVUaJnDdhv Tmdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=XWregEDl; 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 33si10544520plu.126.2019.07.01.08.19.33; Mon, 01 Jul 2019 08:19:49 -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=XWregEDl; 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 S1728726AbfGANxu (ORCPT + 99 others); Mon, 1 Jul 2019 09:53:50 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37198 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727851AbfGANxt (ORCPT ); Mon, 1 Jul 2019 09:53:49 -0400 Received: by mail-pf1-f196.google.com with SMTP id 19so6637295pfa.4 for ; Mon, 01 Jul 2019 06:53:49 -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=CnqcdAZEqlhe5AvSTX+V5wDK1OqDo6RCXWT/qry/0jg=; b=XWregEDl1FFMPhgi4vXgSGCiek/WrfkHRgLPn5FgA3IxY5gqLSnf+5oM7t9Shhq0tn k9ig4d4b372SkcPvNZ2VUnZfZjIBURPZFmBU8+pS1u5GZpAe/nX6VsDTDksvNUpBbxkc ttX2Jr0lLx1e8hSiszEog64NrgL4txrFPVS4k= 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=CnqcdAZEqlhe5AvSTX+V5wDK1OqDo6RCXWT/qry/0jg=; b=TXLTRoEp4qtziFD0ojceQ02n8SiX1JJS2PqJDYvUluateNlqSHxvZ4jYq/GWzfhb9Q /QDwbIxHNq+cPVZIdNyJ72jiZlHj733kBY7J+07I1I++YoI6F07cW45PVphhx94FUFIZ pdQ22wnNghizU/ZHKbk2z75lZcMg86MG/i5Mr+T3llidWK6iUELbIqbqHI4Ml4QMPAQp mt3KWCDdCToX3JasUxybsUDal5/njT9ElVzrZxR2xDVEYO/hnlPAHsJBallR1w07vGPO LUraljCtrYbuqzOBYXAWfARYnI4nU6bfW90KWBX16buGUhQz5qZNVmBDsAkaepq2yfFb c1Ng== X-Gm-Message-State: APjAAAWYmoygY+od+am7GcXTBRkGiO/4poyc0RHYRpUL1knvaJYvHRxR YZgpoJ540UPKVw2XGISIwsLa0Xxv9B4= X-Received: by 2002:a63:7e1d:: with SMTP id z29mr11833928pgc.346.1561989228598; Mon, 01 Jul 2019 06:53:48 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id z13sm11274343pjn.32.2019.07.01.06.53.47 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 01 Jul 2019 06:53:47 -0700 (PDT) Date: Mon, 1 Jul 2019 09:53:46 -0400 From: Joel Fernandes To: linux-kernel@vger.kernel.org Cc: Josh Triplett , kernel-team@android.com, Lai Jiangshan , linux-kselftest@vger.kernel.org, Mathieu Desnoyers , "Paul E. McKenney" , rcu@vger.kernel.org, Sebastian Andrzej Siewior , Shuah Khan , Steven Rostedt Subject: Re: [RFC 1/3] rcu: Expedite the rcu quiescent state reporting if help needed Message-ID: <20190701135346.GA167294@google.com> References: <20190701040415.219001-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190701040415.219001-1-joel@joelfernandes.org> 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 Mon, Jul 01, 2019 at 12:04:13AM -0400, Joel Fernandes (Google) wrote: > The t->rcu_read_unlock_special union's need_qs bit can be set by the > scheduler tick (in rcu_flavor_sched_clock_irq) to indicate that help is > needed from the rcu_read_unlock path. When this help arrives however, we > can do better to speed up the quiescent state reporting which if > rcu_read_unlock_special::need_qs is set might be quite urgent. Make use > of this information in deciding when to do heavy-weight softirq raising > where possible. Just fyi, TREE01-06, SRCU-N and SRCU-t passed overnight testing with this series.