Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1982898rwd; Fri, 2 Jun 2023 03:08:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7KnIBykI1/uxWF7vGWL0DMjkBOG3vGDUZF7/7zOpeCkt6Gj/Lm3EF99MU/31Kk03+uppL4 X-Received: by 2002:a92:de10:0:b0:33a:a93f:a87e with SMTP id x16-20020a92de10000000b0033aa93fa87emr8185266ilm.14.1685700531381; Fri, 02 Jun 2023 03:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685700531; cv=none; d=google.com; s=arc-20160816; b=0xH24MhkFQOPL+B+IYCs1YmQRz7kF4bcoN9QCrqftMy1SZgCHbMHRWXN7ImygGwh7q EwBpeV1Lrjh+of7Yge0tU0y0irIJaI8KPf75h4f+jh5edgU4oipCl5QaLXi32Xi78ki5 S16ZHqA2DHacsI0/f/EsqFY2ha5pKzf9OkluM27ct8Kq0lG/ElyDyPGiycJk63vLTieC /0ZkzSnAkdEnX0nIMT0/lBd4uRQQTyGItvUGCJLMMgM2PjPD+Ad4vJGhPuvFtqs/ZVOG 2k2qKTtCvwNXuLASD+OWGSnjR+xjs9gRKiK/FnitoV1xnnwoX01AHA4PqdQYOqfNLh76 7Qjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ahg7uZge3Zce9zZcH7aXJomNtPGEpmJpyIReiT5nv6E=; b=Sekcj24tXCw34EkE+rHX7SN0jCU4KOqneUljkTp3M6HvR+qK7r0jQrRVbKqPjzoNHl 9wHqB6yRhsFlWDhj9pE1nk0QvO6zIzFhZXriGwrOfMfwDfTA5Z6Hz8sYRdhMri3NQWIz 7e4ePXMhEvA3FrZa6xMcZ/4vk5BKJqWIihYWxhleEs4gKoIh3OVJiFoDH1PllQDWkgGv h4QJGnUp27G8BLBKh9t+0jcLs8B48a42/SEVS1tmCahxT49c0TLJNS8v5g+KQj+XiL9j 7n0QpYHogb4IJsIOZxtD6NFwQwCtkvbJWVv88xllYnM4S6+L4Wd9frA0abjmODf8IJ05 RTaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ExpJrV+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j185-20020a636ec2000000b0053eefa04dbcsi805504pgc.60.2023.06.02.03.08.38; Fri, 02 Jun 2023 03:08:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ExpJrV+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234582AbjFBJwE (ORCPT + 99 others); Fri, 2 Jun 2023 05:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235005AbjFBJwD (ORCPT ); Fri, 2 Jun 2023 05:52:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A8F7132 for ; Fri, 2 Jun 2023 02:52:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 74CDF64E25 for ; Fri, 2 Jun 2023 09:52:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D62D4C4339C for ; Fri, 2 Jun 2023 09:51:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685699519; bh=LwTZxULyEKfOlJX2hcZvEWgQuLprY+dwV1T2krSleFg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ExpJrV+2My5cWFwWwkOzlOGqB2bNqZb66f6XVUYZ9BGsA9SWBgGqpBN4JXrgLPkMM l2XRfkfg9m8y4LlbSSxvOH9FlcIUsiNfPEkQ7ByLTunxx199TufBo2G5wwgV2SBZrb T3fLrUcdV9ldH3MZImXUaLIEQZLYoqj8Jn0cp/xelMmuLdbmljdOyKdQS0WEO0dGHQ ZaeGfOjahYDQT0sonjdwiETEGTiqWuMExAov6zrmOXRp/3e7TEn6QobnZQv/npWQQt 4h12ggNulsg9EemRdGgBaUeHdhwQxzChKJME1rhxYD8FIlkFPGiZkzASpISivZ4CM8 D+VMGCzgfUN7A== Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2b1a6777dd8so19267851fa.2 for ; Fri, 02 Jun 2023 02:51:59 -0700 (PDT) X-Gm-Message-State: AC+VfDy3Z+YIWlGWgrX6cblrKtYhB6PBEA7+8Y3gRKj6eID/cJjrnhF8 f3lIQLTnhhgfwYgjxzlhd4ZybPNTg0MCD0kIpwI= X-Received: by 2002:a2e:860c:0:b0:2af:1d17:7f98 with SMTP id a12-20020a2e860c000000b002af1d177f98mr1425264lji.41.1685699517892; Fri, 02 Jun 2023 02:51:57 -0700 (PDT) MIME-Version: 1.0 References: <20210529034138.83384-1-wangkefeng.wang@huawei.com> <20210529034138.83384-2-wangkefeng.wang@huawei.com> <20210601143125.GB30436@shell.armlinux.org.uk> In-Reply-To: From: Ard Biesheuvel Date: Fri, 2 Jun 2023 11:51:46 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] ARM: mm: Refactor __do_page_fault() To: "Russell King (Oracle)" Cc: Kefeng Wang , linux-arm-kernel@lists.infradead.org, Catalin Marinas , linux-kernel@vger.kernel.org, Andrew Morton , Jungseung Lee Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Jun 2023 at 11:49, Ard Biesheuvel wrote: > > On Tue, 1 Jun 2021 at 16:32, Russell King (Oracle) > wrote: > > > > 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. > > > > Agreed. If your commit message contains an enumeration of things the > patch does, it is a very strong hint that each of those things needs > to be a separate patch if at all possible. Also, apologies for digging up this 2 year old thread :-) I did so unintentionally. (Somehow, it turned up as new/unread in my LAKML folder)