Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3535998pxj; Tue, 1 Jun 2021 07:33:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4JJ5D+p+rKEpk0R2Q6Rk/3tEi1YKvz9LCIBCxlLkNwWoOPcp9zUbLTI2T0Hn6M9rBH/TH X-Received: by 2002:a17:906:b296:: with SMTP id q22mr16868629ejz.9.1622557982503; Tue, 01 Jun 2021 07:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622557982; cv=none; d=google.com; s=arc-20160816; b=bpgEbHFKd/ktWLqifvjIopRum4IiNaoNlPXKOSQqYqIhPa6kw+W9Y2dnvcRtrpB5V3 KU87cIVr8TaghQYI5Il3f7DSfhf77FgQMQB8cq1zLZNyeKNMDRG8p3ZVHg6NiEg6A2rR N9wWxWIzaQG+9bfmNNw+gvsu1DnvfHNca5f0OjYlBLi+JZJSyV2F8IexEb//XlOcZFC/ K15KpYKGkTh2vpSK4fIlPy0QEqx04uWKpIw6QX/FtvUcdTGiyg+0XuFrXLr3Uewy4nPm SlfVntK/F3wV4pHnIdoHkAfeBnlDOoDRy64X+TXgtYcSrfSEmPkUEGkax7kBKAepRLLU CcVQ== 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=gEtXdDu9+lsKZpSpI0/uAo+3rlyBLyfsQkhGtLtsn78=; b=u2MwE82kLKOX3chD5f3W5rN2AICczYf3Md5pRDeZhWfarK0Oqpgs21m3MSClGFPzYv DrywxrniJ3sMJn3u5SSKvBNgJkWVEQIqbQATPYBs2V2NH5d7rk81p8wtiX//2JC5mWvN el47dvdzSM6vZkaRCXBRSr50sfZA5rY/Ucf0A/Hb73W96QoiihU51bve3NsVMmtDqJAE 8WW9C8tCSsKM+45P15mdCGa9T6wAlhjg4V2oR84P+rFeT58CnyOTPJCFph0MNgI2SgDV uvkDhMpJ9+WYbZ6xPGujFy+V42DQuL/Gv9q7X6rcBeWjgqXNkmuFOynANbZdd6luE5E1 SbIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=IFamQIF3; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si7269468edr.240.2021.06.01.07.32.39; Tue, 01 Jun 2021 07:33:02 -0700 (PDT) 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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=IFamQIF3; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234188AbhFAOdO (ORCPT + 99 others); Tue, 1 Jun 2021 10:33:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233924AbhFAOdN (ORCPT ); Tue, 1 Jun 2021 10:33:13 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E59A5C061574 for ; Tue, 1 Jun 2021 07:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gEtXdDu9+lsKZpSpI0/uAo+3rlyBLyfsQkhGtLtsn78=; b=IFamQIF3iLk8EIixhE2reGtgZ z9q2OS6QUH8dvO+XprikEl92iTvBIjJNNcA1tsARxVbrPE7q6EYZ5UOFdcXq6M8+iB2HKDa9SGFsb CoOSnpCPPfwjUsIk/+9awLO0rKoTX72q7iwxAer5vWowFOoQtkchKn4/CUyyPS6JN5DgHl0hKeSSw r7Yu9jbnNJyLFqvLQvOdFDyiSOED4j7DGgnn5YeHwIaKpqw8QVRvq+gLBMCD+J2uQZsTHL67e3L5r ZsJDy+yKmDH5yotV+/LtXDZMAS71Wjap3l2BIzy0khU5XsXbaYDX4GaMcPgUCdzj1Oz1O3qRwrtqI DzVF/8zUQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44582) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lo5QV-0004DG-2d; Tue, 01 Jun 2021 15:31:28 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lo5QU-0000CY-34; Tue, 01 Jun 2021 15:31:26 +0100 Date: Tue, 1 Jun 2021 15:31:26 +0100 From: "Russell King (Oracle)" To: Kefeng Wang Cc: linux-arm-kernel@lists.infradead.org, Catalin Marinas , linux-kernel@vger.kernel.org, Andrew Morton , Jungseung Lee Subject: Re: [PATCH 1/2] ARM: mm: Refactor __do_page_fault() Message-ID: <20210601143125.GB30436@shell.armlinux.org.uk> References: <20210529034138.83384-1-wangkefeng.wang@huawei.com> <20210529034138.83384-2-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210529034138.83384-2-wangkefeng.wang@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 29, 2021 at 11:41:37AM +0800, Kefeng Wang wrote: > 1. cleanup access_error(), make vma flags set and check into > __do_page_fault() and do_page_fault() directly. > > 2. drop fsr and task argument, instead, using vm_flags in > __do_page_fault(). > > 3. cleans up the multiple goto statements in __do_page_fault(). > > 4. use current->mm directly in do_page_fault(). > > Signed-off-by: Kefeng Wang This patch is a really good example of something that is very difficult to review and see that there are no unintended changes. Many people have complained about my patches, where I create a series of many patches where each patch does exactly _one_ simple transformation to the code. This is a good example _why_ I do that - a step by step single transformation approach is way easier to review. Sorry, but I'm not able to sensibly review this patch, and therefore I won't apply it. Please split it into smaller changes. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!