Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2955912ybt; Mon, 22 Jun 2020 11:09:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywf7shLYTBwZ0/0mT6KpPpVxqiBf+sEhfAlsNEoZxaQoM/TVhJ7boJ+yxFKNA/xmWBL5+Y X-Received: by 2002:a17:907:9484:: with SMTP id dm4mr17749635ejc.56.1592849377036; Mon, 22 Jun 2020 11:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592849377; cv=none; d=google.com; s=arc-20160816; b=HdX6TbyRUUw9NYI/h8AoNAKYTQcOhzpmqvYPUKaDvwyi4lj1NwA2DbpgoJ25MMvVXK +w2nSBtEksnl5muzrv6C1qlAIQGJCPjq1BmQkT/3KORBmqXvgFHJFxuz/Dl93GGZvwTM Oc0YE2KM8uqYncrp6uRJc9zns0r6UJs1Ep/j19Klhq4zuk/+37YzgNwlF75IMkXlHvZ5 JzGahridM23ost9atF7mfhYMT/5PCZc4vjDPyEVvPWEJ02ABr+MnsCWsxC6Y1baPuWN4 mC8mTwneqh0RGR+pSFmRbK3u/4NeU12Bxf8H+fpT81E8RXimPa13UsGT2NhJ+WqkQeIL zUtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=DpNd2zXh5ar+PR5dcDtX1KuMP2pD3jdm3Qo6Wkx+K3M=; b=ey/PqKo/+guXsTcFTvBRtrs67NZOBTsVaCF8nBeumu7rgWDyiaxXOWlskhn93dxWdi TPNhZcAuyYUntXoBXnEDcvX+j/V9rXuNw0nXQGETMYgD9PC0cS/wnv6J4ETPWKB/BpZI 0eXO7vwTKzLPejMSHtxyxXjGTh5fr4RCjzpQK2bVyPYKNpSxwz0fZz9oOiUx/BAMSFLJ IICVzondOTdXONNx2TnHZmiLkxC1QYsF84o/duM8zM0hUe68VWEsows33OrlI8vHyMbw NpMYL15NVCdFTN4dMW1U4jGsQf4ccmh6K/Wq9pHr+F7VRogEZR5MIFiaPTjKewpvuSPN AKvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=OhjlVEmB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si4388162ejc.99.2020.06.22.11.09.13; Mon, 22 Jun 2020 11:09:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=OhjlVEmB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730221AbgFVSHX (ORCPT + 99 others); Mon, 22 Jun 2020 14:07:23 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:26432 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730046AbgFVSHX (ORCPT ); Mon, 22 Jun 2020 14:07:23 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592849242; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=DpNd2zXh5ar+PR5dcDtX1KuMP2pD3jdm3Qo6Wkx+K3M=; b=OhjlVEmBvMHdrUu7xMyA7S936CX10oD6wfQonJpfZgHOjCC6N6VDjDhIZ5veP99BqT2cj1+v Vb61PII97Gyn5tNt89ZJ6RY2Fyhf+HSgxeTNf5+HkuT91vMfKcYUQml9Dg+XHao/wk+lx/0h hpXdRcBlqS8YkDdz2klw5X+0oYo= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5ef0f34dfe1db4db897ebb78 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 22 Jun 2020 18:07:09 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 31B07C43395; Mon, 22 Jun 2020 18:07:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from localhost (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: neeraju) by smtp.codeaurora.org (Postfix) with ESMTPSA id C2FC5C433C8; Mon, 22 Jun 2020 18:07:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C2FC5C433C8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=neeraju@codeaurora.org From: Neeraj Upadhyay To: paulmck@kernel.org, josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, Neeraj Upadhyay Subject: [PATCH] rcu/tree: Remove CONFIG_PREMPT_RCU check in force_qs_rnp Date: Mon, 22 Jun 2020 23:37:03 +0530 Message-Id: <1592849223-17774-1-git-send-email-neeraju@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove CONFIG_PREMPT_RCU check in force_qs_rnp(). Originally, this check was required to skip executing fqs failsafe for rcu-sched, which was added in commit a77da14ce9af ("rcu: Yet another fix for preemption and CPU hotplug"). However, this failsafe has been removed, since then. So, cleanup the code to avoid any confusion around the need for boosting, for !CONFIG_PREMPT_RCU. Signed-off-by: Neeraj Upadhyay --- kernel/rcu/tree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 6226bfb..57c904b 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -2514,8 +2514,7 @@ static void force_qs_rnp(int (*f)(struct rcu_data *rdp)) raw_spin_lock_irqsave_rcu_node(rnp, flags); rcu_state.cbovldnext |= !!rnp->cbovldmask; if (rnp->qsmask == 0) { - if (!IS_ENABLED(CONFIG_PREEMPT_RCU) || - rcu_preempt_blocked_readers_cgp(rnp)) { + if (rcu_preempt_blocked_readers_cgp(rnp)) { /* * No point in scanning bits because they * are all zero. But we might need to -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project