2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-27 12:04:22 +08:00
linux-next/arch
Suren Baghdasaryan 4089eef0e6 mm: drop per-VMA lock when returning VM_FAULT_RETRY or VM_FAULT_COMPLETED
handle_mm_fault returning VM_FAULT_RETRY or VM_FAULT_COMPLETED means
mmap_lock has been released.  However with per-VMA locks behavior is
different and the caller should still release it.  To make the rules
consistent for the caller, drop the per-VMA lock when returning
VM_FAULT_RETRY or VM_FAULT_COMPLETED.  Currently the only path returning
VM_FAULT_RETRY under per-VMA locks is do_swap_page and no path returns
VM_FAULT_COMPLETED for now.

[willy@infradead.org: fix riscv]
  Link: https://lkml.kernel.org/r/CAJuCfpE6GWEx1rPBmNpUfoD5o-gNFz9-UFywzCE2PbEGBiVz7g@mail.gmail.com
Link: https://lkml.kernel.org/r/20230630211957.1341547-4-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Acked-by: Peter Xu <peterx@redhat.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: David Hildenbrand <david@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Hillf Danton <hdanton@sina.com>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Josef Bacik <josef@toxicpanda.com>
Cc: Laurent Dufour <ldufour@linux.ibm.com>
Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Michel Lespinasse <michel@lespinasse.org>
Cc: Minchan Kim <minchan@google.com>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Cc: Punit Agrawal <punit.agrawal@bytedance.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-08-24 16:20:17 -07:00
..
alpha Merge branch 'expand-stack' 2023-06-28 20:35:21 -07:00
arc arc: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:33 -07:00
arm arm: include asm/cacheflush.h in asm/hugetlb.h 2023-08-21 13:38:00 -07:00
arm64 mm: drop per-VMA lock when returning VM_FAULT_RETRY or VM_FAULT_COMPLETED 2023-08-24 16:20:17 -07:00
csky csky: convert __pte_free_tlb() to use ptdescs 2023-08-21 13:37:55 -07:00
hexagon hexagon: convert __pte_free_tlb() to use ptdescs 2023-08-21 13:37:56 -07:00
ia64 ia64: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:33 -07:00
loongarch loongarch: convert various functions to use ptdescs 2023-08-21 13:37:56 -07:00
m68k m68k: convert various functions to use ptdescs 2023-08-21 13:37:56 -07:00
microblaze slab updates for 6.5 2023-06-29 16:34:12 -07:00
mips mips: convert various functions to use ptdescs 2023-08-21 13:37:56 -07:00
nios2 nios2: convert __pte_free_tlb() to use ptdescs 2023-08-21 13:37:57 -07:00
openrisc openrisc: convert __pte_free_tlb() to use ptdescs 2023-08-21 13:37:57 -07:00
parisc parisc: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:35 -07:00
powerpc mm: drop per-VMA lock when returning VM_FAULT_RETRY or VM_FAULT_COMPLETED 2023-08-24 16:20:17 -07:00
riscv mm: drop per-VMA lock when returning VM_FAULT_RETRY or VM_FAULT_COMPLETED 2023-08-24 16:20:17 -07:00
s390 mm: drop per-VMA lock when returning VM_FAULT_RETRY or VM_FAULT_COMPLETED 2023-08-24 16:20:17 -07:00
sh sh: convert pte_free_tlb() to use ptdescs 2023-08-21 13:37:57 -07:00
sparc sparc: convert pgtable_pte_page_{ctor, dtor}() to ptdesc equivalents 2023-08-21 13:37:58 -07:00
um um: convert {pmd, pte}_free_tlb() to use ptdescs 2023-08-21 13:37:58 -07:00
x86 mm: drop per-VMA lock when returning VM_FAULT_RETRY or VM_FAULT_COMPLETED 2023-08-24 16:20:17 -07:00
xtensa xtensa: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:35 -07:00
.gitignore
Kconfig - Arnd Bergmann has fixed a bunch of -Wmissing-prototypes in 2023-06-28 10:59:38 -07:00