]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm/rmap: correct some obsolete comments of anon_vma
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 26 Feb 2021 01:17:53 +0000 (17:17 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:01 +0000 (09:41 -0800)
commitaaf1f990aee40bc74b425ef8f51201ae21b85ed7
treefb18395b3d4afa77173fe62a242331a24b55b802
parent48b03eea321c85185d173cb0d112698b79b1c98e
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 <linmiaohe@huawei.com>
Cc: Rik van Riel <riel@surriel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/rmap.c