diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-04-26 17:45:00 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-05-06 03:53:53 +0300 |
commit | 3be51060599ff01899b6d8c3f8aca456506cf5ea (patch) | |
tree | 0a684360bd4979d6554b317575e1e4d3827fbed4 /security/integrity/ima/ima_queue_keys.c | |
parent | e0ffb29bc54d86b9ab10ebafc66eb1b7229e0cd7 (diff) | |
download | linux-3be51060599ff01899b6d8c3f8aca456506cf5ea.tar.xz |
mm: assert the mmap_lock is held in __anon_vma_prepare()
Patch series "Improve anon_vma scalability for anon VMAs".
We have a 3x throughput improvement reported by Intel's kernel test robot:
https://lore.kernel.org/all/202404261055.c5e24608-oliver.sang@intel.com/
This is from delaying taking the mmap_lock for page faults until we
actually need the mmap_lock in order to assign an anon_vma to the vma. It
cleans up the page fault path a little by making the anon fault handler
more similar to the file fault handler.
This patch (of 4):
Convert the comment into an assertion.
Link: https://lkml.kernel.org/r/20240426144506.1290619-1-willy@infradead.org
Link: https://lkml.kernel.org/r/20240426144506.1290619-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Jann Horn <jannh@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'security/integrity/ima/ima_queue_keys.c')
0 files changed, 0 insertions, 0 deletions