]> git.baikalelectronics.ru Git - kernel.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)
commit77d71ffad1f9c7bf3df3f397ce69223c8325d513
treefb18395b3d4afa77173fe62a242331a24b55b802
parentbeb973241ef4d0f0fdf5a2f23b5182a56325ebf6
mm/rmap: correct some obsolete comments of anon_vma

commit bbc076ca20df ("mm: convert anon_vma->lock to a mutex") changed
spinlock used to serialize access to vma list to mutex.  And further, the
commit ce1bf3625288 ("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