Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4202183imw; Tue, 19 Jul 2022 01:45:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t66iWQdYFnhXOn6bVqxI3yttWCs/zei8yeNcrB94TS3FjvC2Gyj14FNP7KSgsDC7nM01HR X-Received: by 2002:aa7:d702:0:b0:43a:5296:df67 with SMTP id t2-20020aa7d702000000b0043a5296df67mr41724047edq.314.1658220336001; Tue, 19 Jul 2022 01:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658220335; cv=none; d=google.com; s=arc-20160816; b=Pc0RUhs6wR2Rdls7kjiXZ+MFu0GzUeRXzz8MyOk7cmnOAJXWA1WxPDahHUBCcFzsyZ AB3lOm8kbk79cOLFC3aJvbj70XDJVG7VPa54xCbnS1IZbwlUaRRs+d1G0sZA2+qRLv/J nNosluxGbQh9YaD4FjjDZbPqFP92aTL3sXHDPdpixkqKx0X/TNoRKZFMSN4MD2yGX4CB MNV09mowTqCrqSO1+EidBUoVNJjJzQ+qIBf1b+B+NBglGcGZwDFKks1b/ssTnHm6TDVA T2pnUxvvt1i4dNN+Q9Am1J5tON9JKRnU+c7Ame2I7oNV+In39Ny+Dxi2QXU17e9GM+zl WWMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=aCQLJQOHcJOJ8JmCqZRzHzMUpESxVjd3NNjhzKxLWQs=; b=EzKbcLIqnAoIJVwxuf6VdTMDFFdLshctVIxQTgy9hQsbvR5ohq2/ZTqTdZX79aaW7B ZlUiZdJIPCZ+AVoMV/l5TNnnmWiYAMKJHU3nhHrijw5RChDCmGgV+jtw7p3/Bu46YUi9 ZYDQ31ZLjptNfiYCqCbtHoVLg2SyeHD5xUT20xLECbri6247EljvRis6EOCF6w+HmCIm EKosqAPtsiWunhfL6Msi/zIzYEj57QVTaJQxxCUQftxAwtlZ8v1K8T0MHm2mFgLqYBN8 HuV/2xJao8cgrano1w372fyXNWpQgWa3RXw7gHdJe4kJp7EDDICD8M7/amrU//dJBX2D xdYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Sk9pVL3n; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc21-20020a170906f91500b0072edc70dea8si2776529ejb.399.2022.07.19.01.45.02; Tue, 19 Jul 2022 01:45:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@redhat.com header.s=mimecast20190719 header.b=Sk9pVL3n; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232245AbiGSIlS (ORCPT + 99 others); Tue, 19 Jul 2022 04:41:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231337AbiGSIlE (ORCPT ); Tue, 19 Jul 2022 04:41:04 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95377BF71 for ; Tue, 19 Jul 2022 01:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658220062; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aCQLJQOHcJOJ8JmCqZRzHzMUpESxVjd3NNjhzKxLWQs=; b=Sk9pVL3nLTNm+GI2UzYgk45qGkMGxqaDTToP1XCcg5rG21ST6Mc/cGy56bbRxVk4oH3FW2 dCBpyqFP/rK+T0gbeyQuDiE/eFoU0ZTDGHLm+5DoQiDa/VMbgCfw4LpFTpzACdZDk+V7nM nFLLkX4+j6eVLz3hIfH52RN/PZk9qgY= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-630-YjvEdISlPayj2_NNlxf-Ag-1; Tue, 19 Jul 2022 04:40:58 -0400 X-MC-Unique: YjvEdISlPayj2_NNlxf-Ag-1 Received: by mail-wr1-f69.google.com with SMTP id n10-20020a5d6b8a000000b0021da91e4a64so2349707wrx.8 for ; Tue, 19 Jul 2022 01:40:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=aCQLJQOHcJOJ8JmCqZRzHzMUpESxVjd3NNjhzKxLWQs=; b=gUyI7xIPShbxn1JH8+jZ0YTcf0PXp+ZJLWz5jTNfkbBJlbCGjZa4PUDDLsLAGv6Civ LYGgi4wVg/EqOUoD7XUGla+EtxBTHra7uk3xBoK2Ush04HpBdJD3yC6kh38cWp6U7E+B +buN6shrPrqKholG2J1K1Obu7vhTEf8X1rQmHl6vbGN6dJucLY/qN3t8UddDfyS4mzyy g4304XciGTq47rQcOYClhbIRL+P0d6H53YDwADzZFHgJSUK4z0I9XVuXMdHI2zqFh9Fq /drrp0Yi0a91rjO5jJcHFLWuOWK/qL3ARTJe6PuK1xFF4kRPhm+jymURSuWodugbTTJw IkaA== X-Gm-Message-State: AJIora/FJUAwQbDXbisyc/nQXO20kDleUMiaooBv0nOQBl1lj92dan6Q +7bBKrybGWCyHEKysQdPRBZbS2nwM/tchLMjuYiYxXaswu4Md8UTwzFy5E58sY6jYSuKrGkRAm7 zvi6WK39FHuVpdlFYYZZEHQ== X-Received: by 2002:a7b:c381:0:b0:3a2:aef9:8df4 with SMTP id s1-20020a7bc381000000b003a2aef98df4mr37053741wmj.7.1658220057355; Tue, 19 Jul 2022 01:40:57 -0700 (PDT) X-Received: by 2002:a7b:c381:0:b0:3a2:aef9:8df4 with SMTP id s1-20020a7bc381000000b003a2aef98df4mr37053722wmj.7.1658220057065; Tue, 19 Jul 2022 01:40:57 -0700 (PDT) Received: from ?IPV6:2003:cb:c709:600:7807:c947:bc5a:1aea? (p200300cbc70906007807c947bc5a1aea.dip0.t-ipconnect.de. [2003:cb:c709:600:7807:c947:bc5a:1aea]) by smtp.gmail.com with ESMTPSA id j23-20020a05600c1c1700b003a32251c3f9sm1833646wms.5.2022.07.19.01.40.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Jul 2022 01:40:56 -0700 (PDT) Message-ID: Date: Tue, 19 Jul 2022 10:40:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v9 06/14] mm/gup: migrate device coherent pages when pinning instead of failing Content-Language: en-US To: Andrew Morton Cc: Alex Sierra , jgg@nvidia.com, Felix.Kuehling@amd.com, linux-mm@kvack.org, rcampbell@nvidia.com, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, hch@lst.de, jglisse@redhat.com, apopple@nvidia.com, willy@infradead.org References: <20220715150521.18165-1-alex.sierra@amd.com> <20220715150521.18165-7-alex.sierra@amd.com> <225554c2-9174-555e-ddc0-df95c39211bc@redhat.com> <20220718133235.4fdbd6ec303219e5a3ba49cf@linux-foundation.org> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220718133235.4fdbd6ec303219e5a3ba49cf@linux-foundation.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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-ext4@vger.kernel.org On 18.07.22 22:32, Andrew Morton wrote: > On Mon, 18 Jul 2022 12:56:29 +0200 David Hildenbrand wrote: > >>> /* >>> * Try to move out any movable page before pinning the range. >>> */ >>> @@ -1919,7 +1948,8 @@ static long check_and_migrate_movable_pages(unsigned long nr_pages, >>> folio_nr_pages(folio)); >>> } >>> >>> - if (!list_empty(&movable_page_list) || isolation_error_count) >>> + if (!list_empty(&movable_page_list) || isolation_error_count >>> + || coherent_pages) >> >> The common style is to >> >> a) add the || to the end of the previous line >> b) indent such the we have a nice-to-read alignment >> >> if (!list_empty(&movable_page_list) || isolation_error_count || >> coherent_pages) >> > > I missed that. This series is now in mm-stable so any fix will need to > be a standalone followup patch, please. > >> Apart from that lgtm. >> >> Reviewed-by: David Hildenbrand > > And your reviewed-by's will be lost. Stupid git. I know, I already raised my concerns regarding the new workflow, so I won't repeat that. I can understand (too some degree) that we don't want code to change just before the new merge window opens. But I do wonder if we really don't even want to do subject+description updates. Sure, the commit IDs will change. Who cares? Anyhow, it is what it is. -- Thanks, David / dhildenb