sh-mm-use-helper-fault_signal_pending.patch removed from -mm tree
The patch titled
Subject: sh/mm: use helper fault_signal_pending()
has been removed from the -mm tree. Its filename was
sh-mm-use-helper-fault_signal_pending.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Peter Xu <[email protected]>
Subject: sh/mm: use helper fault_signal_pending()
Let SH to use the new fault_signal_pending() helper. Here we'll need to move the up_read() out because that's actually needed as long as !RETRY cases. At the meantime we can drop all the rest of up_read()s now (which seems to be cleaner).
---
arch/sh/mm/fault.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
arch/sh/mm/fault.c renamed from arch/sh/mm/fault.c~sh-mm-use-helper-fault_signal_pending +5 -5
@@ -302,25 +302,25 @@ mm_fault_error(struct pt_regs *regs, uns* Pagefault was interrupted by SIGKILL. We have no reason to * continue pagefault. */ -if (fatal_signal_pending (current)) { -if (!(fault &VM_FAULT_RETRY )) -up_read (¤t->mm->mmap_sem); +if (fault_signal_pending (fault, regs)) {if (!user_mode (regs))no_context (regs, error_code, address);return 1 ; } +/* Release mmap_sem first if necessary */ +if (!(fault &VM_FAULT_RETRY )) +up_read (¤t->mm->mmap_sem); +if (!(fault &VM_FAULT_ERROR ))return 0 ;if (fault &VM_FAULT_OOM ) {/* Kernel mode? Handle exceptions or die: */ if (!user_mode (regs)) { -up_read (¤t->mm->mmap_sem);no_context (regs, error_code, address);return 1 ; } -up_read (¤t->mm->mmap_sem);/* * We ran out of memory, call the OOM killer, and return the
_
Patches currently in -mm which might be from [email protected] are
mm-merge-parameters-for-change_protection.patch userfaultfd-wp-apply-_page_uffd_wp-bit.patch userfaultfd-wp-drop-_page_uffd_wp-properly-when-fork.patch userfaultfd-wp-add-pmd_swp_uffd_wp-helpers.patch userfaultfd-wp-support-swap-and-page-migration.patch khugepaged-skip-collapse-if-uffd-wp-detected.patch userfaultfd-wp-dont-wake-up-when-doing-write-protect.patch userfaultfd-wp-declare-_uffdio_writeprotect-conditionally.patch userfaultfd-selftests-refactor-statistics.patch userfaultfd-selftests-add-write-protect-test.patch