Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3830383iog; Tue, 28 Jun 2022 03:47:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tTxfGJi3KtF0csg/x+TWPh4ZUtzYmb0JfLpJ+yglCB/vpHNDaqA4TW0/q+msCdE1Lei0KG X-Received: by 2002:a17:902:c285:b0:16a:1631:afe3 with SMTP id i5-20020a170902c28500b0016a1631afe3mr2986346pld.93.1656413235506; Tue, 28 Jun 2022 03:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656413235; cv=none; d=google.com; s=arc-20160816; b=ld2Ei2yzVbi8RPS9dQnAbe73jKFJSVhpPzVcwS2KkJTT7wv2UBYsSOaXwXw4CgysK6 +CyaAQRuCS9A/udAaCMY4JEXLMqr0cOBYGAmFmf6BEOol4qxQepw58qmZh/0aK4Fi+Wn 8wUFeRp+rJSs1yMcFa7z406sBNXUKlkEam3ETh/aYUp/mXfTXC34Z1GYRhstFwn3uqsy futmfQjBIIkDGdUt3dALqnTe3+xRCtUjAK4T+iStvlBpddRkx+bdKBd7V8P61GCGeUac 0zqm6ff3LTf+N4Xgg+mF0QutBKmpbJJB7k/LyF9dID3mudSdhC7FndWL+rVF58AmCmCw 1iBA== 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=8pRM3r8AeF6GLv7Aybx1vUx/f9NMkwqu6LnYZ6evvqI=; b=U26YaR9RCamyryAhHxFs8vNS3YibryYsoQX+p4OF1PjoLueT4Gk2F4k1gJtjP9k8+S wK+j3Jf73bvgWoq1UqqMyyXQmTkWe/sbasSbKdnByvg7BA/5C2y2W+jlzaiS/Lz0+DpY GNnPFwrzYet2nE+RxFU2gLEQG02YHim6FoR+PJy7iWCw6bwNiWQdYZRaFaRWCVn9TK0a R0S+I8idL9k1YtmsFW+tv7Si2o/Tdm/3JsJ37l9hb5WcJlRj0ezkT3cBgfM5hTlyNyco fhJft0EtUxKnFNfRAhqUI3ZmOaRauv92Lb4Epk7I/JAE46d+KtnEVZknjN2qhirakTDo LphQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FEMCP5UH; 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 j1-20020a170902da8100b001619467d844si21982922plx.296.2022.06.28.03.47.02; Tue, 28 Jun 2022 03:47:15 -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=FEMCP5UH; 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 S1343572AbiF1Klt (ORCPT + 99 others); Tue, 28 Jun 2022 06:41:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343870AbiF1Kls (ORCPT ); Tue, 28 Jun 2022 06:41:48 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0CEBB2F39D for ; Tue, 28 Jun 2022 03:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656412906; 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=8pRM3r8AeF6GLv7Aybx1vUx/f9NMkwqu6LnYZ6evvqI=; b=FEMCP5UHCqHS8JYmq5HoEAt39H2O2l/LOpmdOwaP9xRZ5yhd40Q9Mi5FM1DMoWnQamlhKd 1/U2CErYXB4IKtY0yd6kPeljNITwtDHvw/3L+ar8N0ux+lAUnon95Zkdk8oalXsd2SVQyq 3rkg/U6QJsn5epK3C7lzMcbUnjfm+pM= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-595-zEB0icULMA2Z6GaGPmaUIw-1; Tue, 28 Jun 2022 06:41:44 -0400 X-MC-Unique: zEB0icULMA2Z6GaGPmaUIw-1 Received: by mail-wm1-f72.google.com with SMTP id h125-20020a1c2183000000b003a0374f1eb8so7594530wmh.8 for ; Tue, 28 Jun 2022 03:41:44 -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=8pRM3r8AeF6GLv7Aybx1vUx/f9NMkwqu6LnYZ6evvqI=; b=cEQ3SPBzoxB4aXeGO7FYiDYhYayvIiwBCWBKZ7YAVuiME6RGAgnfNTf7HYu3FHREb0 ROfMjlL37u4TXM4l1oCYrMfUwu3tPbJCuFYy6+geL/px0kg6/4YYZIDc0XOS7yZKGGBH 4SeC6U08s0xzySwcpgyy/CH/GMnMvRHZtZy+bXzSffBtiC/6vo+nUJ4UCM75ghjJr8b/ 9SYLNaVWVsP9rBa1c1wIwcgBPsVKmIaXbvpobI+9ROvvPTpa1t8Qxs9+X/ZZstmOyYUA 7YDsE0hua/0ciouY0G1CqKm8JKDQa5UtRsbX+j4T47bzs3kZwH1Va/f9bAcjBvtYs52L bZ1Q== X-Gm-Message-State: AJIora/1dKESEdaOgqb5seooWiKKaQOo6EnPQcthwZCOyiNLRZNI2HN+ Kh8RvaFQ5NGyjuEf9ebGrXD6TA53aLbQgBuqRSTWgiuI+zxesn7OrxnqTzeM72DXiJBgVDuxJ/i 8JM0JFWyCAGKyCKHT/iGXjQ== X-Received: by 2002:a05:6000:3c6:b0:21b:9d00:db29 with SMTP id b6-20020a05600003c600b0021b9d00db29mr17371380wrg.338.1656412903687; Tue, 28 Jun 2022 03:41:43 -0700 (PDT) X-Received: by 2002:a05:6000:3c6:b0:21b:9d00:db29 with SMTP id b6-20020a05600003c600b0021b9d00db29mr17371350wrg.338.1656412903411; Tue, 28 Jun 2022 03:41:43 -0700 (PDT) Received: from ?IPV6:2003:cb:c709:a00:46df:e778:456a:8d6b? (p200300cbc7090a0046dfe778456a8d6b.dip0.t-ipconnect.de. [2003:cb:c709:a00:46df:e778:456a:8d6b]) by smtp.gmail.com with ESMTPSA id q13-20020adfcd8d000000b00219b391c2d2sm15851990wrj.36.2022.06.28.03.41.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jun 2022 03:41:42 -0700 (PDT) Message-ID: <336094c6-0c94-2b43-5472-c44638e8446a@redhat.com> Date: Tue, 28 Jun 2022 12:41:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v6 06/14] mm: add device coherent checker to is_pinnable_page Content-Language: en-US To: Alex Sierra , jgg@nvidia.com Cc: 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, akpm@linux-foundation.org References: <20220628001454.3503-1-alex.sierra@amd.com> <20220628001454.3503-7-alex.sierra@amd.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220628001454.3503-7-alex.sierra@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 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_LOW,SPF_HELO_NONE,SPF_NONE,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-ext4@vger.kernel.org On 28.06.22 02:14, Alex Sierra wrote: > is_device_coherent checker was added to is_pinnable_page and renamed > to is_longterm_pinnable_page. The reason is that device coherent > pages are not supported for longterm pinning. > > Signed-off-by: Alex Sierra > --- > include/linux/memremap.h | 25 +++++++++++++++++++++++++ > include/linux/mm.h | 24 ------------------------ > mm/gup.c | 5 ++--- > mm/gup_test.c | 4 ++-- > mm/hugetlb.c | 2 +- > 5 files changed, 30 insertions(+), 30 deletions(-) Rename of the function should be a separate cleanup patch before any other changes, and the remaining change should be squashed into patch #1, to logically make sense, because it still states "no one should be allowed to pin such memory so that it can always be evicted." Or am I missing something? -- Thanks, David / dhildenb