Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2447659ybl; Thu, 9 Jan 2020 12:58:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzorXvp+A2RYX4yf86ynKRGRT9hgO24+hyxi/NYhz0HEzZaux0aRP0FA1NogUWOGXn0sGkt X-Received: by 2002:a9d:6005:: with SMTP id h5mr10532951otj.153.1578603513548; Thu, 09 Jan 2020 12:58:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578603513; cv=none; d=google.com; s=arc-20160816; b=Fiqp2oD/sAoHYLdWZfaJVp/y8CIs7bT56EB8+lkcJ5/X8x7bdiMP9xyrAXG7AsZOVk mArTg8UvTN7gfJL70iOJEbaxKmwWSxMWKlQq3i6MdVXpuO9GbsrUn4UJUaHthZU/FazA XrDEQIGG7QmlZCbq9Q8LsY+k/gb9n7MGUDEKpGcVEtVRDgayOTZNd1f3Zn9uQ4Pj1rHW xoMzP4gqqlI20hA0gkZhuJkqBNmfbxRd4x8xd4TpfWIUpP92X3dsFfXAhx7FUyGeQfKf uYet4UAZ68aeCpc51QlveE39JZxHG1YoV2bIGvznOOdH5+6ggjqsaY/gDfNq13MVN+Sl LeLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=4pJJw88cPanlMUkRpmi4CzdQEK/hgqqVVORsb9/9cVE=; b=Y8bG9YPV9K3dBLgWAG4YzouLvXGo1UcFulB5AKyInycLEwN4VzDk4DSrQajy3dp/hl F5ZqHScc0vgv94EqXE3Fms9cBoJsTkRFSYG1j0jija4npk/Nc3TyIcj4VOsPQpyM1AgC lX5CTi+2XAgkTLX3lFQ76vxlNrBSZBsrjohZ6iW15vmxRrzF12yTj79RfSCgUrOqwHyw qgTiBmEIgFKmIagkzVHZoVeiXFDiNGDjzTVFnzK1gihEh2XWt72LCStyTVRQ8cXzkMvy cXxnbbTBedIgrW50eLUl+VFdxuhQrpDDbtnVab6UPGt7nPMMj3IRcUJ7X1+2tGfvfPKk nQEw== 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 l16si4430188otj.59.2020.01.09.12.58.22; Thu, 09 Jan 2020 12:58: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; 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 S1725997AbgAIUz6 (ORCPT + 99 others); Thu, 9 Jan 2020 15:55:58 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:55671 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbgAIUz6 (ORCPT ); Thu, 9 Jan 2020 15:55:58 -0500 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ipeqO-00088L-9V; Thu, 09 Jan 2020 21:55:52 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id C1ABF105BCE; Thu, 9 Jan 2020 21:55:51 +0100 (CET) From: Thomas Gleixner To: Changbin Du Cc: Ingo Molnar , Borislav Petkov , hpa@zytor.com, x86@kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Changbin Du Subject: Re: [PATCH] x86/nmi: remove the irqwork from long duration nmi handler In-Reply-To: <20200101072017.82990-1-changbin.du@gmail.com> References: <20200101072017.82990-1-changbin.du@gmail.com> Date: Thu, 09 Jan 2020 21:55:51 +0100 Message-ID: <877e20bb8o.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain 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 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