Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2295576imu; Thu, 24 Jan 2019 10:16:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN42M+AjafJeyp/orBPhUIVNgS6nq05TpG8yfvYKTw4TYiADs0Brj+kftVx8ySeyxa7dWEAe X-Received: by 2002:a63:4d66:: with SMTP id n38mr6906759pgl.270.1548353812521; Thu, 24 Jan 2019 10:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548353812; cv=none; d=google.com; s=arc-20160816; b=EBEg81/O2GQK4sET3tcButEgt1xykdI37he638FDwQlWVA42s6Vx1SOCbkkYUaC+Ov NdadPZUVH4hFnAYEfqGuKZQbn5nnF75CXfwz3u5LfnyFcLONSfLwY2MH7SQ2biz7REm2 TLPEM4y6xjTMYIq2BtpYABLfqNg01eqaedCHkHSg/0+X+e5YHRSxc2khkMEooKn8+4nl CYNapMBKOwLOTFg2yP6kIXKnHbgNK9weNentrRj+WHRueSbLeVNv8kSgFktTGXIOISg7 NoNDc34SyoNu15IlmY1SpDVyrtWggYPO6MyINA+APHs65rHjczuw3KKpZqUqhe5dv+0K kpRA== 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=sw2owPsQd1KuZ11D/x67ECsnhxIcb+1a68QbLE51YO4=; b=F2uopErdtOH9uIV9mZj0R2DgHqVqyAHn+6eKQRhIqb/dRFxP4RPxHh2A0j4dYNwZij 16OdzU78w48ifj1VKn9IarRkOtDvcurSAVJrBGEcQe09C2hjJ8wA+wwBLXoF292I/cGK 8Cy9Vnn1ecDCkMsAgfmJdhc/qtJ+EzW17jyF32EgybySGJe2UkcsV/Re3mT3snYAThsH IZdqrUyLTQAdwXvNWwo9Wia2IFoaUiiWv/Ce6m1v5yTNcnPsr2BHxbF2gnNnqSI5K0xU 4lo1NloQELFafKK8vP7jlE5euJm35SEzGaFCv7Ai7WOoEO1bckccxw19UYs9p7Q8eOZc PzHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bqRcvcUF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si22497387plr.92.2019.01.24.10.16.37; Thu, 24 Jan 2019 10:16:52 -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=pass header.i=@gmail.com header.s=20161025 header.b=bqRcvcUF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729111AbfAXSOm (ORCPT + 99 others); Thu, 24 Jan 2019 13:14:42 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37755 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726252AbfAXSOl (ORCPT ); Thu, 24 Jan 2019 13:14:41 -0500 Received: by mail-lj1-f195.google.com with SMTP id t18-v6so6102749ljd.4 for ; Thu, 24 Jan 2019 10:14:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sw2owPsQd1KuZ11D/x67ECsnhxIcb+1a68QbLE51YO4=; b=bqRcvcUF50yuKJqptiYyxZxpYJly8T+VWTOnhtbDpSNduaSr5zoW17hKr+9vFZobri DTxRNfC2ellhb1wZw10eNHxDaRDFEefR7Z4GMYjY0+wr4CT0YIcrT/6AdeSbkGZYu3Of u7FMeK3qQW/EJXdmJRvimLG9By0+8ZW92Kjnp1Y0A/4A8kUcj+ScLRAiwx75SdW/TU2p i7RrydeLfClCc/ElRDnILLko95K1KKI2Zj22yRALIz/mTxK+QSoRkVTnqdbmgtqgkAkq 3NtLs9W6u5K1P4UAhqeMnQLg0n2iVZoOjKaDV+bAVd05pYY3e+Kul39yze38VoEqIGem E2kg== 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=sw2owPsQd1KuZ11D/x67ECsnhxIcb+1a68QbLE51YO4=; b=II1WcPmheGm16AzU5h51NDEb17iAkkftwQEkIv7xctD0OfvFQEgacFSTd3wpImfW3m Dpq4cyshb/6h4sC0/dGAYLb7jamFq7cRSYrP7xSIcjgMGZ54JdVgj6mEoK604To1PcJ/ WdaRt8p4YsKbk4c2DRqov1b8IWajELb3bGq+zwYRZgP3mNW6S80vq2Kyb87E2G5pQx1d I9CvMGpJ3N5gN7beS5Mg4jsim/Gtrd06estJ0VtECj05376XkuWyxyPpUqciRZt4kq9N H7Uz5fi1a5glHX3KKcCbyM15ePAA0fm2AIe0p/CVRKQq91ksSo5KCxKcLsGDTf9+mwxh msHQ== X-Gm-Message-State: AJcUukcv+STfg2N5WivBj8YyCPhLQLHoUckJy+P8BrxvZlFLNBeJedW6 qvN9H/6fQdfqZQJb8BbgeHw= X-Received: by 2002:a2e:9603:: with SMTP id v3-v6mr6324854ljh.15.1548353679228; Thu, 24 Jan 2019 10:14:39 -0800 (PST) Received: from uranus.localdomain ([5.18.103.226]) by smtp.gmail.com with ESMTPSA id b128sm1071651lfe.91.2019.01.24.10.14.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Jan 2019 10:14:38 -0800 (PST) Received: by uranus.localdomain (Postfix, from userid 1000) id D587D460419; Thu, 24 Jan 2019 21:14:37 +0300 (MSK) Date: Thu, 24 Jan 2019 21:14:37 +0300 From: Cyrill Gorcunov To: LKML Cc: "Paul E. McKenney" Subject: [PATCH v2 -next] rcu: rcu_qs -- Use raise_softirq_irqoff to not save irqs twice Message-ID: <20190124181437.GE2332@uranus.lan> References: <20190124180740.GD2332@uranus.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190124180740.GD2332@uranus.lan> 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 The rcu_qs is disabling IRQs by self so no need to do the same in raise_softirq but instead we can save some cycles using raise_softirq_irqoff directly. CC: Paul E. McKenney Signed-off-by: Cyrill Gorcunov --- The prev patch body has been screwed, sorry. kernel/rcu/tiny.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-next.git/kernel/rcu/tiny.c =================================================================== --- linux-next.git.orig/kernel/rcu/tiny.c +++ linux-next.git/kernel/rcu/tiny.c @@ -65,7 +65,7 @@ void rcu_qs(void) local_irq_save(flags); if (rcu_ctrlblk.donetail != rcu_ctrlblk.curtail) { rcu_ctrlblk.donetail = rcu_ctrlblk.curtail; - raise_softirq(RCU_SOFTIRQ); + raise_softirq_irqoff(RCU_SOFTIRQ); } local_irq_restore(flags); }