Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67AB6C433E0 for ; Sat, 27 Feb 2021 02:30:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 40DFB64F29 for ; Sat, 27 Feb 2021 02:30:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230104AbhB0Cak (ORCPT ); Fri, 26 Feb 2021 21:30:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:51074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbhB0CaO (ORCPT ); Fri, 26 Feb 2021 21:30:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 73F9364F14; Sat, 27 Feb 2021 02:29:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1614392990; bh=VjFt+PBDDkZ7FGvs+Cqn8OfMBZktJOPhzx/92HIVsIA=; h=Date:From:To:Subject:From; b=uVeorEarWLJSK4TkUoTtzlTxJWWhXgUxwxVpQy4XWr+Wx4YeFhORIuZqYpNzLmbGS fG6XqpZyUXbbG7VhD13QRpEO5AeemO+KMENxzZo8YvRd7PJzXM9je7flnqP+bOy+Ir IJ+O6en+MxDrcYUb+t1DHA3OkODq6C8syIvuI2Qs= Date: Fri, 26 Feb 2021 18:29:50 -0800 From: akpm@linux-foundation.org To: linmiaohe@huawei.com, mm-commits@vger.kernel.org, riel@surriel.com Subject: [merged] mm-rmap-correct-some-obsolete-comments-of-anon_vma.patch removed from -mm tree Message-ID: <20210227022950.GoJVY9hqa%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: mm/rmap: correct some obsolete comments of anon_vma has been removed from the -mm tree. Its filename was mm-rmap-correct-some-obsolete-comments-of-anon_vma.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Miaohe Lin Subject: mm/rmap: correct some obsolete comments of anon_vma commit 2b575eb64f7a ("mm: convert anon_vma->lock to a mutex") changed spinlock used to serialize access to vma list to mutex. And further, the commit 5a505085f043 ("mm/rmap: Convert the struct anon_vma::mutex to an rwsem") converted the mutex to an rwsem for solving scalability problem. So replace spinlock with rwsem to make comment uptodate. Link: https://lkml.kernel.org/r/20210123072459.25903-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Cc: Rik van Riel Signed-off-by: Andrew Morton --- mm/rmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/mm/rmap.c~mm-rmap-correct-some-obsolete-comments-of-anon_vma +++ a/mm/rmap.c @@ -168,7 +168,7 @@ static void anon_vma_chain_link(struct v * * Anon-vma allocations are very subtle, because we may have * optimistically looked up an anon_vma in page_lock_anon_vma_read() - * and that may actually touch the spinlock even in the newly + * and that may actually touch the rwsem even in the newly * allocated vma (it depends on RCU to make sure that the * anon_vma isn't actually destroyed). * @@ -359,7 +359,7 @@ int anon_vma_fork(struct vm_area_struct goto out_error_free_anon_vma; /* - * The root anon_vma's spinlock is the lock actually used when we + * The root anon_vma's rwsem is the lock actually used when we * lock any of the anon_vmas in this anon_vma tree. */ anon_vma->root = pvma->anon_vma->root; _ Patches currently in -mm which might be from linmiaohe@huawei.com are