]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fixup: separate vma->lock from vm_area_struct
authorSuren Baghdasaryan <surenb@google.com>
Sun, 4 Dec 2022 23:47:03 +0000 (15:47 -0800)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 4 Jan 2023 20:59:27 +0000 (15:59 -0500)
commit6638055b8f70dff1bb64ef8030020ae7fb96cf9f
treebed455414d069e52acfe1463a03c4bdfa469c3c2
parent49aa88c556fe7b8e330fdbb5ea198ba105c6465e
fixup: separate vma->lock from vm_area_struct

vma->lock being part of the vm_area_struct causes performance regression
during page faults because during contention it's count and owner fields
are constantly updated and having other parts of vm_area_struct used
during page fault handling next to them causes constant cache line
bouncing. Fix that by moving the lock outside of the vm_area_struct.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
include/linux/mm.h
include/linux/mm_types.h
kernel/fork.c
mm/memory.c