Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1322881ybl; Fri, 10 Jan 2020 16:19:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzrEiR+zMy5VE/qiwiF0/HOFrztTGG5yXP3mZTra9i3EuX5TGyEGfUIXYXCla41/0XUCzYa X-Received: by 2002:a05:6830:1d5b:: with SMTP id p27mr4673560oth.263.1578701962497; Fri, 10 Jan 2020 16:19:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578701962; cv=none; d=google.com; s=arc-20160816; b=xs7U6Jw6ZD9fo3pVglV5yOiBiRdrNvjyWh44ZLpdUm3euv27VWbkL55GhJfWdQhM28 NfMK+HzNA8YHtJw9rxosx7dUtVXzKbOEF0+K8P5mS9yhMJk+ZFbWJ5R5vCa7rb4BsErq VDg/8oZiy7Jim5+3FMFuHOMNaaKIwTEVjk2aPj3pxn2SBhyFFa8aaQw7ia98sn2p9CkX jjQJ0lzmhAZMQEqOtkRTo1yLDT9Z+Y+yqI9S9RWKoWKjihOVDqZop8UqBR78QyOnvP7f IcYg6/1mroj+C4YZj5Dq3/Tz7WJmDGchdYLkxkd2PxZPTyCF8q3BGWusorxHVfcPf5Bv WA+Q== 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=6jKeWeD5y+GkhgTJIyMUV9GSPEn0NfxLM3Pa9VZ2QXM=; b=r7jHK+qQKYCnd9bRErC2PVPb/j+nHqqFhBtYZ+bv21RWgSLlIuctJMv9qiHBnwSLis 8jkB0Qr7MqmeLj4XxBLDELupKR+LulJ/daSieZkKfWA7+a6DAuPvfY2Zhh4Y59gK+Y8E A7F57oLCdtiaABI26vzSHYYvFg6wNohixDmxNq6RXrty6RIPdKYp9POGxa3s4n6ROc9l kJpBk7yJOAYNI7vqn1G/CMVHDQJH/cahsVBQhIyQ9IiaGXMZ4vrCEkhnPikc8TILOzBc jziynbPD9v/jOeB45wDQ9J3m7Zv577tNZrO8JLaCHL/e0Mgri8F/j2VQJ5HluGXI17JQ aLHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JskvBMyR; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si2512672oto.204.2020.01.10.16.18.57; Fri, 10 Jan 2020 16:19:22 -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=@gmail.com header.s=20161025 header.b=JskvBMyR; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727762AbgAKAR2 (ORCPT + 99 others); Fri, 10 Jan 2020 19:17:28 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41013 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727444AbgAKAR2 (ORCPT ); Fri, 10 Jan 2020 19:17:28 -0500 Received: by mail-pf1-f194.google.com with SMTP id w62so1905674pfw.8 for ; Fri, 10 Jan 2020 16:17:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6jKeWeD5y+GkhgTJIyMUV9GSPEn0NfxLM3Pa9VZ2QXM=; b=JskvBMyRQNj60bC9BGBO/leq3hU6SF+FZARMBel8xvh9hqsFODxPiscCwbq524AUJ3 51h2p9tBW/DgKf2EtVq+N10euWHYzuAW979wXLNNYw7eI4/FftmJ5rIwK5a9KpyYroit g8vhNWm47AOTXjbhRGDqAv0sln5Xb+f0yyLWQpS6/d7UBbi06bNRZUp0y8Rp4ZXQcb1x Iag78bn+0sp+nok07/WxfiTUo3S9SiwbrNbaX6s1qe+VyY+HLAHoTLVmKODHgn6dYYHT CrmPLMvmdjUBK+kxEsdwT3wCkyUGrPXH3KJa23NbAANs1X/Bj0DS8Vm4eUv84zbowZpJ 3Peg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6jKeWeD5y+GkhgTJIyMUV9GSPEn0NfxLM3Pa9VZ2QXM=; b=DythlZhLHx008TSSg/G012rlWQV3v1mZR0bPEQFe9A+BAk7cd9LOjPpN4Xe8NUr2i0 DYZCcxH690qsN38bVVKqhQZuA2VxP7ZTtyuDHFT9LQboXC3bE+uK+VBxHW7Nmba1WPk3 9xHFaEbei7jYra07RHR7lvBN2/iNDdfmw1MkcN1JDw+hx21057biye+Aa4fO0ADLiVdP wlQW1NiEArTvw/hnqKiBNAXNXjj9quNtsyXONxs3PGcfQn2QQO626jUPrwsttxtO0JKY vO6Uuo95ZDxeUcGORcEw7MC5Br+88XaqydnjB2kHFeNOVKHb0s6QXjLUgtQICqTseEal vB9Q== X-Gm-Message-State: APjAAAU5bh5bov7sJfUVFeYeSSJM5ojddqxhZixpvr+nhoogkdRVfuS7 8mkoGzjNtFWTLUC8LnRAhS8= X-Received: by 2002:aa7:9808:: with SMTP id e8mr7303386pfl.32.1578701847442; Fri, 10 Jan 2020 16:17:27 -0800 (PST) Received: from mail.google.com ([139.180.133.10]) by smtp.gmail.com with ESMTPSA id c14sm4311437pfn.8.2020.01.10.16.17.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Jan 2020 16:17:27 -0800 (PST) Date: Sat, 11 Jan 2020 00:17:23 +0000 From: Changbin Du To: Borislav Petkov Cc: Changbin Du , Thomas Gleixner , 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: <20200111001723.4ygbhfcza2ifrpzn@mail.google.com> References: <20200101072017.82990-1-changbin.du@gmail.com> <877e20bb8o.fsf@nanos.tec.linutronix.de> <20200109210225.GK5603@zn.tnic> <20200110140549.xqjhrdpxllkvqbuk@mail.google.com> <20200110151329.GF19453@zn.tnic> <20200110173449.rhr5p4lal3aul43g@mail.google.com> <20200110195837.GJ19453@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200110195837.GJ19453@zn.tnic> User-Agent: NeoMutt/20180716-508-7c9a6d Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 10, 2020 at 08:58:37PM +0100, Borislav Petkov wrote: > On Fri, Jan 10, 2020 at 05:34:50PM +0000, Changbin Du wrote: > > Just to move all the check code together and be a standalone function. > > yes, this somewhat does code refining after the irqwork is removed but > > I think it is normal. > > But it makes review harder because your patch is removing irq_work, > *nothing* in the commit message is talking about *why* you're doing > that additional change. I'd imagine at the end of the commit message > something like: > > "While at it, repurpose the IRQ work callback into a function which > concentrates the NMI duration checking." > > This lets a reader know know why that additional change is done instead > of going back'n'forth and having to ask you why you're doing this. > > Ok? > sure, and thanks for your suggestion. I will send v2 later. > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette -- Cheers, Changbin Du