]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: write-lock VMAs in vma_prepare before modifying them
authorSuren Baghdasaryan <surenb@google.com>
Mon, 27 Feb 2023 17:36:15 +0000 (09:36 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 28 Mar 2023 23:24:52 +0000 (16:24 -0700)
commit61c37056be32033a85f56e32fd25a41f7c498e03
tree54c060b72edd9bef239d12238a48fc0cbbb64e47
parentdfb8fca69dc654b5c21ff03397b481d27de03cc6
mm/mmap: write-lock VMAs in vma_prepare before modifying them

Write-lock all VMAs which might be affected by a merge, split, expand or
shrink operations.  All these operations use vma_prepare() before making
the modifications, therefore it provides a centralized place to perform
VMA locking.

Link: https://lkml.kernel.org/r/20230227173632.3292573-17-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c