mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 23:20:32 -04:00
mm: allow per-VMA locks on file-backed VMAs
Remove the TCP layering violation by allowing per-VMA locks on all VMAs. The fault path will immediately fail in handle_mm_fault(). There may be a small performance reduction from this patch as a little unnecessary work will be done on each page fault. See later patches for the improvement. Link: https://lkml.kernel.org/r/20230724185410.1124082-3-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Suren Baghdasaryan <surenb@google.com> Cc: Arjun Roy <arjunroy@google.com> Cc: Eric Dumazet <edumazet@google.com> Cc: Punit Agrawal <punit.agrawal@bytedance.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
284e059204
commit
350f6bbca1
@@ -1,17 +0,0 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
#ifdef CONFIG_MMU
|
||||
|
||||
#ifdef CONFIG_INET
|
||||
extern const struct vm_operations_struct tcp_vm_ops;
|
||||
static inline bool vma_is_tcp(const struct vm_area_struct *vma)
|
||||
{
|
||||
return vma->vm_ops == &tcp_vm_ops;
|
||||
}
|
||||
#else
|
||||
static inline bool vma_is_tcp(const struct vm_area_struct *vma)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif /* CONFIG_INET*/
|
||||
|
||||
#endif /* CONFIG_MMU */
|
||||
@@ -45,7 +45,6 @@
|
||||
#include <linux/memcontrol.h>
|
||||
#include <linux/bpf-cgroup.h>
|
||||
#include <linux/siphash.h>
|
||||
#include <linux/net_mm.h>
|
||||
|
||||
extern struct inet_hashinfo tcp_hashinfo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user