Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2455223ybl; Thu, 9 Jan 2020 13:05:33 -0800 (PST) X-Google-Smtp-Source: APXvYqyj8YuUy4e1jlWg2U0crweYscq2HqXe4j+xlwcSaI/ckq1bVm695UUzt6e3HB6ahWahE7t5 X-Received: by 2002:a9d:6857:: with SMTP id c23mr9531616oto.351.1578603933669; Thu, 09 Jan 2020 13:05:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578603933; cv=none; d=google.com; s=arc-20160816; b=Q6+39clwn8BAPHSOEbk65WR4cXULJxjbuUkwnTK+NouuAY580uXWt/UjD7x/Q0wKWW YVyuwHEuph4LY1IDKt4txaruFMEgBNyoy+DAakpDMONxBknPB1hggm+snMpukTYXGeKv +jv2mQfZGiPqr/eZ43SR/+RDV9SHjTrB/TFDkf9fqyhu5nAS95Qom9Z10DCjCw7rwDAD eMPm/zABqDvrVI9+fxSDCTGF0QADbfQuUxBnfR8fUJ+3djFzAizCq2Yd2zifKNPCvzIX cAc0Zocr/oxEBjsmw+XdUMd53WJfgperBMFzoTAAdMfzmQRMftyP1e8Ckg4xF9dpwlvE AwGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L9ctHWAEoAxB6qWkfJNvezN/3ut+326++8UFDKa+VH0=; b=hc7Fggz0tsM1dawujrMfeEWXr0lpF/v7wbsorLIA2CBFEBp9HIQFT7w6TaYXufkXMs +S3JpDXgJ8QGahqCF1vZGp4DErIx8CrPDpjQQ662kj2vSUZiLwziR33fKgbirGqm8u0G 6AjuMTpxU/cqrrweCwY6eBm4z7SFEXKDd+05GGur11cHdIHBXYM5CWfcNlL+U8STFsek GLK+e3QZPg04z+yxeYWmvOM1/bFTqNk/1hCmw7BCceK0ni+qAcLQ7jVY4UWnwDmPzAYZ uUWZXUkaaA09Vdih4/oQugVwStQpiDwQlk4wpsl6cd63CMAQ8tdws2RRU6RR1t2+23Tm xJaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=mimi3IN9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z21si4227649oic.32.2020.01.09.13.05.21; Thu, 09 Jan 2020 13:05:33 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=mimi3IN9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728326AbgAIVCd (ORCPT + 99 others); Thu, 9 Jan 2020 16:02:33 -0500 Received: from mail.skyhub.de ([5.9.137.197]:34362 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbgAIVCd (ORCPT ); Thu, 9 Jan 2020 16:02:33 -0500 Received: from zn.tnic (p200300EC2F0C57004DD84C0E473AA3AE.dip0.t-ipconnect.de [IPv6:2003:ec:2f0c:5700:4dd8:4c0e:473a:a3ae]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 659911EC0CAD; Thu, 9 Jan 2020 22:02:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1578603752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=L9ctHWAEoAxB6qWkfJNvezN/3ut+326++8UFDKa+VH0=; b=mimi3IN90JDCdnLLXjFsXBwc2bpx9kyR9bbApbdRZ9MjN4zWTKOP7tRm0fjmvU9NCPLj6P dwjkaG0KeVdmrygkWwgzFjFSuv+2Bmv/r7ISR35sTWfKCYVl4N8Ts0ZxxoZ5x1FLVvK16I +8Wh4GBKmmfe8XFixCRqVJo42MUWihQ= Date: Thu, 9 Jan 2020 22:02:25 +0100 From: Borislav Petkov To: Thomas Gleixner Cc: Changbin Du , Ingo Molnar , hpa@zytor.com, x86@kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/nmi: remove the irqwork from long duration nmi handler Message-ID: <20200109210225.GK5603@zn.tnic> References: <20200101072017.82990-1-changbin.du@gmail.com> <877e20bb8o.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <877e20bb8o.fsf@nanos.tec.linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 09, 2020 at 09:55:51PM +0100, Thomas Gleixner wrote: > Changbin Du writes: > > > First, printk is NMI context safe now since the safe printk has been > > implemented. The safe printk already has an irqwork to make NMI context > > safe. > > > > Second, the NMI irqwork actually does not work if a NMI handler causes > > panic by watchdog timeout. This NMI irqwork have no chance to run in such > > case, while the safe printk will flush its per-cpu buffer before panic. > > > > Signed-off-by: Changbin Du > > Looks about right. > > Acked-by: Thomas Gleixner I'm wondering why is this thing being moved: - if (delta < nmi_longest_ns || delta < a->max_duration) - continue; into nmi_check_duration() and not remaining where it is? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette