Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17774300ybl; Thu, 2 Jan 2020 11:46:53 -0800 (PST) X-Google-Smtp-Source: APXvYqynh136Kur2/JWPFdHuGUctDJ1yqPap/IOIlvEB3pCcSYL0VN9N+aTC7aPQo/G7BwM/PG70 X-Received: by 2002:a9d:60c4:: with SMTP id b4mr71074263otk.166.1577994413314; Thu, 02 Jan 2020 11:46:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577994413; cv=none; d=google.com; s=arc-20160816; b=lcxb78SnA4lzfkaJAme34CijpqWxQgTWxktxLjiO7hisUKX+JGun2OtTzqngg1RUIZ YmuqxHXVp1eHGRlIO04TAATIpYMIyzzqpm/RVZBuTgDmVb3q7AtWAbQT5LeQFmH+BvZd Em9R80qaEbbwIKWCKs3qEHxLCQC9lu5HngiQ1I1XMdlDDBvYba2Zmz5ZLjV7zNyxS4J1 C2+aSap4SiSHwvN+bFEJYQ2xaht2mttMuOB6XV+J4rP3bQz4sx6yCJHXYv7xghACqGBr ja3fxFOrebGjT3oWCohakijhZWAufUPrqgCdrBv1LCb9RX1AiVs207+gR4DQEuG6NKGn gkZg== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=aSISRGV3uqgatWgkRMgJS/s5cMZTbZhMftR6aGbNcWk=; b=aIFsQislzYXf3WJCH6Nfb70u/OkwVpIlwjjwGpDKg+ajL3tFXg/CUmfsdRK7XZExTK 0JuBq6+fmuNdDD3JbBs3cr7U2dXTqLppyqBNNY3ZyMWuVD6O/H4bl7pWCD7y/jH9Oy8V 0ahhxGd8yw8RAZXQNrXjzEoZ8JWy2VErI3x6fNZqKZTsulUIAyVHRVbd19v6hvTpspQN i3AhYm2VSBRgD5nBaTTYeCAoLJn8XSPDxnHrz/lzRMbiDVIWUdrCwg3muzWPnV8V8TfM vAwCG2h5PkXPj1w+LUniP4fBSZzP1WmbNqt3WFHpJST003iNqrylP7p2odTMJOdnjxsC 9E9A== 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 h14si30793750otn.6.2020.01.02.11.46.38; Thu, 02 Jan 2020 11:46:53 -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 S1728304AbgABTpS (ORCPT + 99 others); Thu, 2 Jan 2020 14:45:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:53826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727951AbgABTpS (ORCPT ); Thu, 2 Jan 2020 14:45:18 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 868E32253D; Thu, 2 Jan 2020 19:45:16 +0000 (UTC) Date: Thu, 2 Jan 2020 14:45:14 -0500 From: Steven Rostedt To: Wei Li Cc: , , , , , , , , Subject: Re: [PATCH] sched/debug: Reset watchdog on all CPUs while processing sysrq-t Message-ID: <20200102144514.646df101@gandalf.local.home> In-Reply-To: <20191226085224.48942-1-liwei391@huawei.com> References: <20191226085224.48942-1-liwei391@huawei.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Dec 2019 16:52:24 +0800 Wei Li wrote: > 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. Have you had this triggered? > > Add to sysrq_sched_debug_show() as what we did in show_state_filter(). > > Signed-off-by: Wei Li > --- > 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 f7e4579e746c..879d3ccf3806 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(); This doesn't seem to hurt to add, thus. Reviewed-by: Steven Rostedt (VMware) -- Steve > print_cpu(NULL, cpu); > - > + } > } > > /*