Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1363326pxb; Sat, 29 Jan 2022 04:04:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBJnNAQeyTrih5oFcHCLY/Wy7BpN/fzR8Eq5hPzzFgOOtyzMbSGp0wshxnkhqzwZTL8/XV X-Received: by 2002:a05:6402:2079:: with SMTP id bd25mr12562588edb.274.1643457877939; Sat, 29 Jan 2022 04:04:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643457877; cv=none; d=google.com; s=arc-20160816; b=qOZnk28Q7cnfwAhStlSSdv+vY6rpD0NLC4Ilv9cNbVt6bMfRbb/NQlEtxtX9SPMZaj LsLmtR2jc5J3ReaXIPb+U7gzBnB2/7ZIwto/kF1BZJgBCra/lzwk1zN0Unm7QnWY3Eif mLcxnGI0ydLIYW7b12CMpZTPBOKpIpm6iyyWSzjkEYKh5YSfcXOn4PcI1qJyebD9fbP8 sqWytu00vYJ9tOB7Jl2bHnKZKa5uGSSOhfz8OejLs1gc+qWg2xxYCaHvMWkycRxtVUB5 15tlV6OPayfZvoF7UVloYGx8Wn19W4UPuR/uZuW7La4A/zaPNPQhx5QvJzNh3kCJpXG6 uuiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GLai6eZVvHzEeFHfQNGh1lnCEJ7gn9eI2uw9kbiSlRc=; b=atVGUyhkV4MNjKG2k1S45xM4eW53ul4R2mbZrx016UkzlP0s5dp8ksXGP+Xr7EeRy2 o/YvEbnkEDNAg0fPLVJ7Syvl9609KwLbg6sg8tzpPPpu/lumGlVSGHh88BbSgM23uMNB H4hisSwRPyt9JXv4S/HySEEPVtG7HHLczjb7MPzMPXl8PA+J/VsRh+7yHbOGQKafbqMP MT7BW+mkOXtrzXLXzF44H4xZ3Io5LcmINP/QxrVWu358JXl9iMWOLicvfQdILfdRrYMU GWmjMd5Tyyc7LmGZ8iaS3dHNjWukTewheLkZwgFsONOZLcq/ldySiNPTinMG8ehoxf6W iVWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ecZKNutF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si5166061edc.170.2022.01.29.04.04.13; Sat, 29 Jan 2022 04:04:37 -0800 (PST) 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=pass header.i=@intel.com header.s=Intel header.b=ecZKNutF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345630AbiA1DNb (ORCPT + 99 others); Thu, 27 Jan 2022 22:13:31 -0500 Received: from mga17.intel.com ([192.55.52.151]:39938 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242230AbiA1DN3 (ORCPT ); Thu, 27 Jan 2022 22:13:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643339609; x=1674875609; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/LmCgpYiJBrJsf8AATV8fsiaEKrBmaCM1obCwdAjp24=; b=ecZKNutFLqH5p/zslw1Qndt2PDsBFFB6fIBpvTSE5s+oFk0fb5M8+EZJ X7EItUo+JTDD8N/6Q5ytRhz9GSHk9/ik7KLISoaUEATcEKdbRmSJl+nDd S1Dt8Xh/WQDjtVOEdUCyJFGmEjHdcJRhb3/M4sDqR3J3qhhabV0uJHy99 x/N0R6F2fApHOuUgTxYt7pe55aL4I2nfNpJpGPV075UB12NFEDz68xYZX 4tTjviLvWumHRtH8wHLZ1kY+/gvaGIPOKbWZVOXcs/HJLwg6rWdFdM421 fLCk+iXknJgnLQiAEOiXJEIb56rbYxlXT3SyVyKjpusFtGA8AGzPtMjwu w==; X-IronPort-AV: E=McAfee;i="6200,9189,10240"; a="227702447" X-IronPort-AV: E=Sophos;i="5.88,322,1635231600"; d="scan'208";a="227702447" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2022 19:13:29 -0800 X-IronPort-AV: E=Sophos;i="5.88,322,1635231600"; d="scan'208";a="535960378" Received: from zq-optiplex-7090.bj.intel.com ([10.238.156.125]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2022 19:13:27 -0800 From: Zqiang To: paulmck@kernel.org, frederic@kernel.org Cc: linux-kernel@vger.kernel.org, qiang1.zhang@intel.com Subject: [PATCH] rcu: When rcuog kthreads is in polling mode, wakeup waitqueue is not requried Date: Fri, 28 Jan 2022 11:13:46 +0800 Message-Id: <20220128031346.157961-1-qiang1.zhang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When grace period cleanup, the rcuog kthreads that waiting in sq waitqueue will be awakened, however if the 'rcu_nocb_poll' is set, the sq waitqueue always empty, so if 'rcu_nocb_poll' is set, return directly. Signed-off-by: Zqiang --- kernel/rcu/tree_nocb.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/rcu/tree_nocb.h b/kernel/rcu/tree_nocb.h index 636d0546a4e9..9e106c590e56 100644 --- a/kernel/rcu/tree_nocb.h +++ b/kernel/rcu/tree_nocb.h @@ -201,6 +201,8 @@ static void rcu_lockdep_assert_cblist_protected(struct rcu_data *rdp) */ static void rcu_nocb_gp_cleanup(struct swait_queue_head *sq) { + if (rcu_nocb_poll) + return; swake_up_all(sq); } -- 2.25.1