Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8850420ybl; Fri, 17 Jan 2020 02:10:56 -0800 (PST) X-Google-Smtp-Source: APXvYqywpjZI354XDdXK0RZDSDEjkc5jZq/x5T4R8qOPKdMxHigmlYOP2Hjp/WeSeKKZAkeSt46x X-Received: by 2002:a05:6830:4c2:: with SMTP id s2mr5727242otd.144.1579255856530; Fri, 17 Jan 2020 02:10:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579255856; cv=none; d=google.com; s=arc-20160816; b=eYbf5uWEyPK/4Ny+Qq51LEPn+mdvdRdor3NECfWdCwke4Hqn8sJn4TXw39DQJODXFH IgMltccMmcnrqcZsZmqgPYOxQMimOr7fUvCBJ4zhOApwxpwFEmGfCE3j9Es5sg3rY4px ja35NEVU9+6Zlqx7Oxa8AjwXcdqq9xlL7uSN83KDk4WeXnryrlgaWZBJP1kWXJm+GpZR 4xXc/HPj910JN+hDyKpaQtCmalEFwtzUg/JJPb8wuDrqQqEdlA2nPY1otKvR71gsUqxT 6Sy2YoDba9ONS9f641pJxkJ7lMTU3ZQbG/zbLkOHE086cHH6kWd10aNsyFiTcBk4aKqK DTBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=kXEGA5o19tVxyRlboR91s++eznIAkW5Hg3/LcMGBIW0=; b=xBrrCorl9EsypJuv4T6AeBcXnwotLMusuTzPhu+M8SdQ8UVeAt8yfpZhy6gBfBCdK0 ZMc8yYVa8jvwSAhJjsDZaudiAZWJoEGLdaYOmMawu5518/twt2kXkKde99S1/EJiE/rB eSSUB1LDPz6UhQk27+ldkSKnEWPZXYHtrx0azUPHK67Dd4Xm7mnjVp/Caz2r37F8UIfQ MkC4ObSbchtbbn2IEHp2RlYTpnr3hS+m6UCc3DE6/VCIzIB+lstBrUJply7Sb+MEH16/ 7GbQk1N68OQkyJjZXeYWJBhCAASjYsTdQwtT+H1nDzo++D8+jnQKtdgbcpONI+9SwBX1 KPig== 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 y6si13408023oih.217.2020.01.17.02.10.45; Fri, 17 Jan 2020 02:10:56 -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; 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 S1729352AbgAQKJg (ORCPT + 99 others); Fri, 17 Jan 2020 05:09:36 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:55435 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729195AbgAQKJO (ORCPT ); Fri, 17 Jan 2020 05:09:14 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1isOYY-0005TH-CM; Fri, 17 Jan 2020 11:08:46 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 5EBE41C19D2; Fri, 17 Jan 2020 11:08:42 +0100 (CET) Date: Fri, 17 Jan 2020 10:08:42 -0000 From: "tip-bot2 for Wei Li" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/debug: Reset watchdog on all CPUs while processing sysrq-t Cc: Wei Li , "Peter Zijlstra (Intel)" , "Steven Rostedt (VMware)" , x86 , LKML In-Reply-To: <20191226085224.48942-1-liwei391@huawei.com> References: <20191226085224.48942-1-liwei391@huawei.com> MIME-Version: 1.0 Message-ID: <157925572220.396.10027500952114963200.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: 02d4ac5885a18d326b500b94808f0956dcce2832 Gitweb: https://git.kernel.org/tip/02d4ac5885a18d326b500b94808f0956dcce2832 Author: Wei Li AuthorDate: Thu, 26 Dec 2019 16:52:24 +08:00 Committer: Peter Zijlstra CommitterDate: Fri, 17 Jan 2020 10:19:20 +01:00 sched/debug: Reset watchdog on all CPUs while processing sysrq-t Lengthy output of sysrq-t may take a lot of time on slow serial console with lots of processes and CPUs. So we need to reset NMI-watchdog to avoid spurious lockup messages, and we also reset softlockup watchdogs on all other CPUs since another CPU might be blocked waiting for us to process an IPI or stop_machine. Add to sysrq_sched_debug_show() as what we did in show_state_filter(). Signed-off-by: Wei Li Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Steven Rostedt (VMware) Link: https://lkml.kernel.org/r/20191226085224.48942-1-liwei391@huawei.com --- kernel/sched/debug.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index f7e4579..879d3cc 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -751,9 +751,16 @@ void sysrq_sched_debug_show(void) int cpu; sched_debug_header(NULL); - for_each_online_cpu(cpu) + for_each_online_cpu(cpu) { + /* + * Need to reset softlockup watchdogs on all CPUs, because + * another CPU might be blocked waiting for us to process + * an IPI or stop_machine. + */ + touch_nmi_watchdog(); + touch_all_softlockup_watchdogs(); print_cpu(NULL, cpu); - + } } /*