Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3290690imm; Tue, 17 Jul 2018 02:12:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpejA8RhQp5rskSe9hVr4cXEOoieixPxWjWKhIDYWnFmtcMVudQquX2i0mUaN4mUPkHLtaoU X-Received: by 2002:a17:902:a989:: with SMTP id bh9-v6mr825216plb.245.1531818765097; Tue, 17 Jul 2018 02:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531818765; cv=none; d=google.com; s=arc-20160816; b=dtCBxF00vz0gj0KDqggUBCJivhXjag5Oba13EUt9WxXqkmPy8QxbtY+atIkkmfF7J4 oP/Oxj/4qB9TgKmHIC8oNZFlqLeE5yIbCU90q6VBZGqKV2DDv0EGIbrWFrFp8rL5emz/ /6UI1N9dfwMxumKjMsZd5vEJTFngHEt/FF7FWpl5oPPJCC4yzmkzA0AXVdFIUutr+GKu kSO+3HTMaS78nVTB6qBlx6Mpyae9vNLtssOmz18h8CIXEGT2jL8WhZ/N/Z7E4bkVPq5P hFMFy2k8JwvbTyDJi0UvEBVDBv7hr6bCdpiSTvDULsKDEo3GaeL94msGPMPB5tELv8vP dT2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=0MAlbvZbr76sXWYWfQhko00pjk0qYWsaSfg04aU5jEg=; b=i7TKBxcmlfwVXsZrHVzSyQqpm+Rh9vMNIcv1S2v6OlgVnV9ZHxE58kLCazY3GaOtFv WiUJrGfiebPwpNBcI32S5txFaxuV1z1LDIoDnFMWQNAOvwoPzuL7cgC/0hnhbKASBohL RR9aqqHekatMfec/avFoODMm2yG/tbsbX5ykD8KPZj6dHBaSrj5W5SSeoGFQMi2mfAel /eYkOHAdtjqVf+exZ1C5J8L2PGl1iiuXj/FMm/VZYELsEFNSUdyU1SBiETmD5A0aF+8L DHur8dFeSd3fTFhRkRPiJ5jjY0CzjqsNP3lC38EBiUOo6A/u0Ci0Fi/s9c2RssWFQdC3 hnjw== ARC-Authentication-Results: i=1; mx.google.com; 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 x127-v6si407813pgb.618.2018.07.17.02.12.30; Tue, 17 Jul 2018 02:12:45 -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; 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 S1729697AbeGQJnZ (ORCPT + 99 others); Tue, 17 Jul 2018 05:43:25 -0400 Received: from terminus.zytor.com ([198.137.202.136]:35709 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728089AbeGQJnY (ORCPT ); Tue, 17 Jul 2018 05:43:24 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w6H9Bfh31458671 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 17 Jul 2018 02:11:41 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w6H9BfpB1458668; Tue, 17 Jul 2018 02:11:41 -0700 Date: Tue, 17 Jul 2018 02:11:41 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: "tip-bot for Steven Rostedt (VMware)" Message-ID: Cc: paulmck@linux.vnet.ibm.com, mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com, linux-kernel@vger.kernel.org, rostedt@goodmis.org Reply-To: mingo@kernel.org, paulmck@linux.vnet.ibm.com, hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, rostedt@goodmis.org In-Reply-To: <20180524223839.GU3803@linux.vnet.ibm.com> References: <20180524223839.GU3803@linux.vnet.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:core/rcu] rcu: Add comment to the last sleep in the rcu tasks loop Git-Commit-ID: cd23ac8ddb7be993f88bee893b89a8b4971c3651 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: cd23ac8ddb7be993f88bee893b89a8b4971c3651 Gitweb: https://git.kernel.org/tip/cd23ac8ddb7be993f88bee893b89a8b4971c3651 Author: Steven Rostedt (VMware) AuthorDate: Thu, 24 May 2018 18:58:16 -0400 Committer: Paul E. McKenney CommitDate: Thu, 12 Jul 2018 15:39:21 -0700 rcu: Add comment to the last sleep in the rcu tasks loop At the end of rcu_tasks_kthread() there's a lonely schedule_timeout_uninterruptible() call with no apparent rationale for its existence. But there is. It is to keep the thread from going into a tight loop if there's some anomaly. That really needs a comment. Link: http://lkml.kernel.org/r/20180524223839.GU3803@linux.vnet.ibm.com Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Paul E. McKenney --- kernel/rcu/update.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index 4c7c49c106ee..39cb23d22109 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c @@ -814,6 +814,7 @@ static int __noreturn rcu_tasks_kthread(void *arg) list = next; cond_resched(); } + /* Paranoid sleep to keep this from entering a tight loop */ schedule_timeout_uninterruptible(HZ/10); } }