Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1623839rwd; Thu, 15 Jun 2023 13:11:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6yhJRGPJIDWWAti7ddw1SI0N1HasM8c7NEz1WbXnfoVqZRhxzw3tDQkFkkrLC/gCFReI9e X-Received: by 2002:ac2:5bcd:0:b0:4f6:4d92:a001 with SMTP id u13-20020ac25bcd000000b004f64d92a001mr10730088lfn.27.1686859877025; Thu, 15 Jun 2023 13:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686859876; cv=none; d=google.com; s=arc-20160816; b=t17vJrNB7EJE8eNQCDVkw8C7cduVDsKB9hCDQG+UdROQjADSZQwkb1CWOxZmPq9yXt 8avd7rUDS+cWJsqq+x6SkFBCkWJUhcXHqB6Vthkkaq3QyYPJ34nM6nzny0FOCiM2Q4gk 7bwrPHOqqVs978VtvD4PzlBBFfqIQOjmUBSGFIXPhM5WDM+QNvCTVybwnj46mASxKP7V N5/c6AEDuBZ7fLdZxgUGi5Agn8LAEGcop0gldy1NRjq0D6QvL9QHERjij+JaaHUXqPlo TDr/KstNmLVt9YK+qDiaWfNrTo/JX72qbFIMl6AXfZIoLXls2mYhGdCafQBjMIo8VYSJ rmmQ== 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=UcOpteduUqck9yvQgpJHjo+JwyvicD28FUiieKHhaT8=; b=ue+zXrypeDsKmABPqNRqrOjmj3ejsYAm8IVZpWj16mTnJQzoBZ0KNyT9qETkqcWwvm LYKVpcba1YtUvdzuxyS15CPLncNGaLdDolRnImGqBCHTm4bzDskmyooVGy0s5iGgH/oz 4U3omAow176j8mYBR0xH0VX+raEl8XDtZ4VMcGHJEIZHz+4+ydtTjKziIlY3TC+jlhfV 3xTgFP5BzsfT9Yu2OBAqC+mzRnR8owxve4eU/i6guSoYIVs11x5CWMo372ndHhWIdIuP H5kSrEAhIobbt9EAfuXpQN+SLxWgzK+dC5zamUFkaOOt9u5QEj3V2BpmLaaC44aNFzNS sJww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=coBraIC8; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gf8-20020a170906e20800b009829b687c79si1525488ejb.893.2023.06.15.13.10.52; Thu, 15 Jun 2023 13:11:16 -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=@redhat.com header.s=mimecast20190719 header.b=coBraIC8; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231778AbjFOTnQ (ORCPT + 99 others); Thu, 15 Jun 2023 15:43:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjFOTnO (ORCPT ); Thu, 15 Jun 2023 15:43:14 -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 ESMTPS id 44B1E2956 for ; Thu, 15 Jun 2023 12:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686858147; 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: in-reply-to:in-reply-to:references:references; bh=UcOpteduUqck9yvQgpJHjo+JwyvicD28FUiieKHhaT8=; b=coBraIC8yPmLTLDfhHZjQ8IQkkR9JGzCXb7WOaw9rINsvbqPbTVkJSMb8//8PSD1AeE58/ GjV1oJVYTDheohFJSP+eooF4KBV5AdjORn9juh252d9IZZGdQDV7eff5mZpHpnXLTk2UbK AQ0XoP9nyXAYaION297HflTltpQlQ3I= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-351-v45Pmu4INMyH2Y-O6hWOqQ-1; Thu, 15 Jun 2023 15:42:26 -0400 X-MC-Unique: v45Pmu4INMyH2Y-O6hWOqQ-1 Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-7621c759972so17356085a.1 for ; Thu, 15 Jun 2023 12:42:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686858145; x=1689450145; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UcOpteduUqck9yvQgpJHjo+JwyvicD28FUiieKHhaT8=; b=YWJ02F2wDbIGZTT5sS3q272DUG2H4c8WcYiqxP7jOLlxmKdIOd301py6uUE7v+bICm Ygd1RF632P3o/y3IfvAOIqN7VSszjGve517TqYDGWgAGTJ6lkuZIQGIoJdSdXxwoIADT Ak/OuTQmLMGjGdTYm7U/oYiPkb2A288nbcsnPXP0P8gKIbl+cmGxDf5DVG7sv97LyLUS Y0fYPzGOyQhGRSjb3Jgf8wD91kMoRvXuE/+hcPu5K/xC06UwPa+aDOBbVPqfaXYsP1aT PfOVUHDMRs3ky225ETBK93qrtShN9kBzvmf8kHXrNP1Eipy4eOq0wyHWztbFOyzYDvrb NYOA== X-Gm-Message-State: AC+VfDwiMXt5UinwUoLbQUPoREuMb035aMNVskuJGg+1ItIgoVfZNesJ 7d4Hpe/vo/4QvPCs/mLJji3IHWfwKZK3izKHPW93w4xsJ0C3WdJvKd2VDWn434wE5CE0Vhd6EPe udC4x6xpAkoIrEceJtUak6A8c X-Received: by 2002:a05:6214:f22:b0:625:8684:3406 with SMTP id iw2-20020a0562140f2200b0062586843406mr34400qvb.0.1686858145570; Thu, 15 Jun 2023 12:42:25 -0700 (PDT) X-Received: by 2002:a05:6214:f22:b0:625:8684:3406 with SMTP id iw2-20020a0562140f2200b0062586843406mr34304qvb.0.1686858143137; Thu, 15 Jun 2023 12:42:23 -0700 (PDT) Received: from x1n (cpe5c7695f3aee0-cm5c7695f3aede.cpe.net.cable.rogers.com. [99.254.144.39]) by smtp.gmail.com with ESMTPSA id l19-20020a0ce513000000b006262725bc89sm249428qvm.73.2023.06.15.12.42.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 12:42:22 -0700 (PDT) Date: Thu, 15 Jun 2023 15:42:21 -0400 From: Peter Xu To: Mike Kravetz Cc: David Hildenbrand , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Matthew Wilcox , Andrea Arcangeli , John Hubbard , Mike Rapoport , Vlastimil Babka , "Kirill A . Shutemov" , Andrew Morton , James Houghton , Hugh Dickins Subject: Re: [PATCH 4/7] mm/hugetlb: Prepare hugetlb_follow_page_mask() for FOLL_PIN Message-ID: References: <20230613215346.1022773-1-peterx@redhat.com> <20230613215346.1022773-5-peterx@redhat.com> <533c32cf-9a18-1590-4d29-f076d6bd58c1@redhat.com> <38574ed3-ea96-a72e-00dd-4e6204413a86@redhat.com> <20230615002525.GD38211@monkey> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230615002525.GD38211@monkey> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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-kernel@vger.kernel.org On Wed, Jun 14, 2023 at 05:25:25PM -0700, Mike Kravetz wrote: > On 06/14/23 11:51, Peter Xu wrote: > > On Wed, Jun 14, 2023 at 05:47:31PM +0200, David Hildenbrand wrote: > > > Right. Then just call patch #2 "Add missing write-permission check" and this > > > patch "Support FOLL_PIN in hugetlb_follow_page_mask()" or sth. like that. > > > > > > Regarding the backport, I really wonder if patch #2 is required at all, > > > because I didn't sport any applicable FOLL_WRITE users. Maybe there were > > > some? Hm. If it's not applicable, a single "Support FOLL_PIN in > > > hugetlb_follow_page_mask()" patch might be cleanest. > > > > Yeah, I agree. The code is definitely needed, not the split of patches if > > no need for a backport. Let me merge then. > > > > Should have read this before adding my RB to patch 2. I assumed no > backport. Agree, than merging the gup_must_unshare here makes more sense. Thanks for taking a look! No worries, I'll make bold to just take your R-b over the merged patch when I repost, according to your R-b in patch 2 and the comment here. I hope it's fine to you. -- Peter Xu