Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp398931rwe; Thu, 1 Sep 2022 01:04:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR5c6BfzVPXB4C4JN5Mak7dDUR/dTIn+rPWsM9A7G+637vht8qhkzzYSQKycOhjZPisI9KSm X-Received: by 2002:a17:906:2bc7:b0:72f:dc70:a3c6 with SMTP id n7-20020a1709062bc700b0072fdc70a3c6mr22892649ejg.645.1662019480130; Thu, 01 Sep 2022 01:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662019480; cv=none; d=google.com; s=arc-20160816; b=dYkuMq6sJ41IO1+24iG8UT+uYB9odsLr9Q1zYLxgppMmilHzqKQUq91UnO0ZpRtQey yKrm1Wd4cpFoOwIheBs/+tzXQCQNRQBp4EfQCXFnSbZpmuEG3YgN4cs+7/9aR4OhfG0z z5CwYQcWQg5Yn/FQ0rZGxTFJL9UnihlgcD060KI1teSJ3dQOBgMNNbqx5EJl9VYUj4n5 bTOsmHgDawKVkMzY7iXaHqNuF4m1/oXF9KBJ+pKdIBJWq5c7fAuIUtTFLIPv76kvN+9R DXLn4i06n276HaKr6Caymhf1LuUuFqF+5phlVMPe+KbT4yrGT4/bDKAa21bJS0GD5Pse 43ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NlolkOVzROxrmysLyLOweRyR0NiCeVgfH2ZsqTw7uYI=; b=SQ3alIIU9t/RSx+yKA4Q31vcKchVlzJROknKSLWDVw1N0E37nk/TGx4PscsZh8Cpgd Kn/cuR1woprlfuJHOfkxXtTbo7He8U1nnRwWXQBY4S7U729ye6HVrM2Ouz9uzrFINH4x jmben2HwzqNjG8Wd7d6Ped60MMxMtO+pQusTtPgqYu8oMto8mMmlv47o8+WS90uA4bRw T+RA5TBurzJc3jzjWTJIX9yUtOujrFZyBi/gujM9D4mmJsngwPlrH3b4We/aJfQJkOUP NKFj2vlrE8GD2K5MAt23ByB1/mKP9L15NoT1IdoAZ7mareDfJes8JPJu7xK/sHZa2sDA FQlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="F7Esdy/W"; 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 b9-20020a056402278900b0043e438a48e1si1540071ede.178.2022.09.01.01.04.14; Thu, 01 Sep 2022 01:04:40 -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="F7Esdy/W"; 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 S232804AbiIAHYA (ORCPT + 99 others); Thu, 1 Sep 2022 03:24:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233767AbiIAHW7 (ORCPT ); Thu, 1 Sep 2022 03:22:59 -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 E7C441257E0 for ; Thu, 1 Sep 2022 00:21:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662016890; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=NlolkOVzROxrmysLyLOweRyR0NiCeVgfH2ZsqTw7uYI=; b=F7Esdy/WcrEJ/RxHhD5yHprtYomEa3e6TZhgtm+ldYuoSvm6Hsap9UVFO7Drjq18t/ueNu HrrlAvidM8+N1JTgNsUxX5pBnk9y30RElHRw+RMVQUWTeuZAeJuZbOSrSYl0OofHlPoRCE kXNipslwm5T7jeenMeXvtWg8b+UR6Y8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-451-FLn326K1NgqpnOVgPbYwKg-1; Thu, 01 Sep 2022 03:21:25 -0400 X-MC-Unique: FLn326K1NgqpnOVgPbYwKg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8FC623802127; Thu, 1 Sep 2022 07:21:24 +0000 (UTC) Received: from t480s.redhat.com (unknown [10.39.193.132]) by smtp.corp.redhat.com (Postfix) with ESMTP id 607891121314; Thu, 1 Sep 2022 07:21:21 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , "Kirill A . Shutemov" , Sasha Levin , "Aneesh Kumar K . V" , Vlastimil Babka , Jerome Marchand , Andrea Arcangeli , Hugh Dickins , Jason Gunthorpe , John Hubbard , Peter Xu , Yang Shi Subject: [PATCH v1] mm/gup: adjust stale comment for RCU GUP-fast Date: Thu, 1 Sep 2022 09:21:19 +0200 Message-Id: <20220901072119.37588-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 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,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-kernel@vger.kernel.org commit 4b471e8898c3 ("mm, thp: remove infrastructure for handling splitting PMDs") didn't remove all details about the THP split requirements for RCU GUP-fast. IPI broeadcasts on THP split are no longer required. Cc: Kirill A. Shutemov Cc: Sasha Levin Cc: Aneesh Kumar K.V Cc: Vlastimil Babka Cc: Jerome Marchand Cc: Andrea Arcangeli Cc: Hugh Dickins Cc: Jason Gunthorpe Cc: John Hubbard Cc: Peter Xu Cc: Yang Shi Signed-off-by: David Hildenbrand --- mm/gup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index 5abdaf487460..cfe71f422787 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -2309,9 +2309,8 @@ EXPORT_SYMBOL(get_user_pages_unlocked); * * Another way to achieve this is to batch up page table containing pages * belonging to more than one mm_user, then rcu_sched a callback to free those - * pages. Disabling interrupts will allow the fast_gup walker to both block - * the rcu_sched callback, and an IPI that we broadcast for splitting THPs - * (which is a relatively rare event). The code below adopts this strategy. + * pages. Disabling interrupts will allow the fast_gup walker to block the + * rcu_sched callback. * * Before activating this code, please be aware that the following assumptions * are currently made: -- 2.37.1