]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: Fix unnecessary locking of anon_vma on expanding of a vma.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 20 Oct 2020 18:59:58 +0000 (14:59 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:30:36 +0000 (12:30 -0500)
commit55340497ce91f89e3bcd5d085cc3503d8beadf15
treeeac311c5152d314b2f3b6597997e692886fbcb5e
parentb54baa451ba6cab234ddcee9deef774e33ccdcb1
mm/mmap: Fix unnecessary locking of anon_vma on expanding of a vma.

When expanding the end of a vma, it is unnecessary to loc the anon_vma tree for writing
because the spinlock on the vma tree ensures that there are no concurrent vma expansions

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/mmap.c