Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1096021ybl; Fri, 10 Jan 2020 12:01:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwMM9jlO0Z293pDDD+UzQhrZNOSid0LTnRncV1VWS1g6f/CKyLt4EjtC2I5NFOuWr/SYfOf X-Received: by 2002:a54:4086:: with SMTP id i6mr3597813oii.65.1578686499412; Fri, 10 Jan 2020 12:01:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578686499; cv=none; d=google.com; s=arc-20160816; b=fUi/tVdwliTNeipatSoG7/7bjOaug0GkH2KG66vTRznAdhpHjhcq9hOu40XAmBZgiV dqZKo/tGb6XiSnHXPx1zIMHvsTXqpg76FLtgujSuNpiY09Y/U6l9AQKZSODNHytyOwyo /ZWdvrksov9MdklhHb87QSdWxnYJJyAXPuytqaBnx7kTUvxZ/psLlT4SaPZP7AkwTCKV jR8t0Bu1dOo9CvzivgAujFeMhFGGf2HSZ9y8YtQJ6p4DlSlr7AhlbCtQuVtYD+mBib8A QtA9NosuQFn4y8s0oItRrwpJzwF/vsATAWK4hVLMLTohyhS5iLOhsDvYQ7OZww1DGsIq 6C2A== 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=6Zf4g5IfOki+jdhGV15Erd3yZAnIWoJKHhalmJWvQEg=; b=w2+7n3jimDp3dZeu9vSBqKgwXVg2c9eA6GJa4exLPhTIvrlmU6ijl1BWElt/NjBTMs XIM01OD6DCiRu/FD4KjS/ql4hJzoRJC5ivbFAdJLZpxG+BrM1tDmZfxWQREi3z9rm6g7 kduJbkUf31HETCuTNLRavZr85jvNW7wfhPqfAhuEuCmKSsbuLQQfr1N2DUBl51J+21+R mA9bS7ml1B/rQrZz29L1Ptn1Dwi9Ll2a7v+Sq++3t6xhqDPZPtaPHNcLJaKsAZsPXEKE IUw4IgyFaEE/3nG4ecQZi2OBuIhJ+ER8xLStom/c7b8Fn3WIWFIwlzPqD9cQDfkjZYpg I92w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=XPcsW5ON; 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 w196si1774369oia.135.2020.01.10.12.01.16; Fri, 10 Jan 2020 12:01:39 -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=XPcsW5ON; 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 S1728452AbgAJT6p (ORCPT + 99 others); Fri, 10 Jan 2020 14:58:45 -0500 Received: from mail.skyhub.de ([5.9.137.197]:34950 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727650AbgAJT6p (ORCPT ); Fri, 10 Jan 2020 14:58:45 -0500 Received: from zn.tnic (p200300EC2F0ACA00F8C15324EBC48DF9.dip0.t-ipconnect.de [IPv6:2003:ec:2f0a:ca00:f8c1:5324:ebc4:8df9]) (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 BAE561EC0AB5; Fri, 10 Jan 2020 20:58:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1578686323; 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=6Zf4g5IfOki+jdhGV15Erd3yZAnIWoJKHhalmJWvQEg=; b=XPcsW5ON8bdwb6eQ1BUiL3NXPLHQ9MUEhHdnHz3BZ/O+Dq45sCeuiLmkbzg6WOB0079egu mSnz5bc6k6oLWWvtagMQKlfVRHwI754WNIS+l597r4fWVcZcWQuEambYIyxlxIglmvAJcd fCbtHhxI0Yb+ySxSfm4Qap56FFESDic= Date: Fri, 10 Jan 2020 20:58:37 +0100 From: Borislav Petkov To: Changbin Du Cc: 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: <20200110195837.GJ19453@zn.tnic> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200110173449.rhr5p4lal3aul43g@mail.google.com> 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 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? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette