Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1220477pxb; Fri, 22 Jan 2021 09:51:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKt3rMIYJFvbA9bPprQA6fHTXipc7xGEEvvyPRGsADo7Ti2RXcs6idLHuTPZE9fgDSLyaN X-Received: by 2002:a05:6402:144:: with SMTP id s4mr4192311edu.63.1611337898911; Fri, 22 Jan 2021 09:51:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611337898; cv=none; d=google.com; s=arc-20160816; b=WqboieQ0QzGlBAqaD9PZMHE+8vDaojUik4XBeafi5RnoAnyvOlDhSy3r73zueRkLgE ccfEhWtWbcyG6sMAXuV4yqHNZTiGuopYJdyTrsgoRC13dzFySNu+1UJyZeH58dPKQDSk Oqp6RiCq54N4JxVVTqbrNPjx27TKdgmxuxSLNbThN0MOtiZNDR7sWW94V8l2cR2lGkX8 vymNLOosXbuD27cOBN3ELvcohBTL/AxOQDdGk1O9mKdkSb6iCiAERn3DKr6AuddXRHm/ 4Tcm53H+zdR4Mes23ozyeJWqay/Hif7LzFUHWbzPWIZb8lgNeTWPHFTZJ63prqMts5Ic Q9Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kjDUuGmvxHmWefMdTytDRxOhUrooa9xk+0ETS4TVSKE=; b=ZNljk0fjYCvNIWPkM3hmGRFw+w9mKXLhRuyUTcROtuL+sA4e9jRJcxUSIqRPnoSoBf DZE64aRzRUlfrGUHCulKs9XbGo0kD863TvBDhG1gNrCyPW7OTRlWS60WJZZwoZt3Gzwh Cd+25Oi3yvroT1Fi3CUmFwhMGyyzJ5bEgJ3wOBxnIieGtt9Bmq9UnLqq6O2QNEzzyO3y nWSYIFAyKOx0sjEPFPtBbZu1euEnBbz9AVAQYFm4pw+NWVMX7n2X6s41M5k0AI8pNrsd 49pwUSSeiplhKA5DnCrLU3ulg6m4vLQEvFqR8g+agXlW27o5r0f/p2jvcZ+e5VHnVKDe M6IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RdHV/9mK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm6si3159396ejb.395.2021.01.22.09.51.12; Fri, 22 Jan 2021 09:51:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RdHV/9mK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729289AbhAVRm2 (ORCPT + 99 others); Fri, 22 Jan 2021 12:42:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:51776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729473AbhAVRjE (ORCPT ); Fri, 22 Jan 2021 12:39:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id ACA7023A68; Fri, 22 Jan 2021 17:38:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611337104; bh=ge6tFCsU5h0tS9yUo8/3zw0PVb/UhI5wMta1OpY7wJM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RdHV/9mKBWfKxkyGt65UDS6nh7Gm9zzC1uQDDgz/6Pz7OaUPM9Q4WCyNK2PK/C8PQ 3NwtLe6z1bbfmkR+ujUgNpLDHoedMnaDDKFwvp0On8N7ftz4fs9cdC8U3K1ANnH9iF ZPdj5xV4FgGXlRK5CRpnAOKHVG00PHS7o2PpR+Kx3sokVMJ7rNobRgs7g6Oy/VSlnt 4s+pke/pNHhdVr6HmuxgVtM8hR53oySrrNI9UvWOP6vGCft+97Ke6q18/MYG3t8+tZ yMAhXRcFoKATyn68lVD3MU6NXocopg8y4uhy1MzbXPHRinVlZiSnT4vTBkakYYnvQf ICjAiRvM+ylIA== Date: Fri, 22 Jan 2021 19:38:21 +0200 From: Jarkko Sakkinen To: Andrew Morton Cc: Tianjia Zhang , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Shuah Khan , haitao.huang@intel.com, Kai Huang , x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, Jia Zhang Subject: Re: [PATCH] mm: Optimizing error condition detection in do_mprotect_pkey() Message-ID: References: <20210118133310.98375-1-tianjia.zhang@linux.alibaba.com> <20210121144627.64a60437fe97786596f389d0@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210121144627.64a60437fe97786596f389d0@linux-foundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 21, 2021 at 02:46:27PM -0800, Andrew Morton wrote: > On Wed, 20 Jan 2021 16:29:20 +0200 Jarkko Sakkinen wrote: > > > > > > > On Mon, Jan 18, 2021 at 09:33:10PM +0800, Tianjia Zhang wrote: > > > Obviously, the error variable detection of the if statement is > > > for the mprotect callback function, so it is also put into the > > > scope of calling callbck. > > > > > > Reported-by: Jia Zhang > > > Signed-off-by: Tianjia Zhang > > > > No fixes tag, no description what this commit does. Nothing > > makes sense to me. > > It's a little cleanup. Makes the flow at this site consistent with the > other places where this function handles errors. I added a bit to the > changelog mentioning this. Alright, I see. I'm just used to getting feedback to my own patches that "imperative form" of expression should be rigidly used. That's the main reason I gave the feedback. /Jarkko