+ mm-remove-caller-signal_pending-branch-predictions.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm/: remove caller signal_pending branch predictions
has been added to the -mm tree.  Its filename is
     mm-remove-caller-signal_pending-branch-predictions.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-remove-caller-signal_pending-branch-predictions.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-remove-caller-signal_pending-branch-predictions.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Davidlohr Bueso <dave@xxxxxxxxxxxx>
Subject: mm/: remove caller signal_pending branch predictions

This is already done for us internally by the signal machinery.

Link: http://lkml.kernel.org/r/20181116002713.8474-5-dave@xxxxxxxxxxxx
Signed-off-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


--- a/mm/filemap.c~mm-remove-caller-signal_pending-branch-predictions
+++ a/mm/filemap.c
@@ -1125,7 +1125,7 @@ static inline int wait_on_page_bit_commo
 				break;
 		}
 
-		if (unlikely(signal_pending_state(state, current))) {
+		if (signal_pending_state(state, current)) {
 			ret = -EINTR;
 			break;
 		}
--- a/mm/gup.c~mm-remove-caller-signal_pending-branch-predictions
+++ a/mm/gup.c
@@ -727,7 +727,7 @@ retry:
 		 * If we have a pending SIGKILL, don't keep faulting pages and
 		 * potentially allocating memory.
 		 */
-		if (unlikely(fatal_signal_pending(current))) {
+		if (fatal_signal_pending(current)) {
 			ret = -ERESTARTSYS;
 			goto out;
 		}
--- a/mm/hugetlb.c~mm-remove-caller-signal_pending-branch-predictions
+++ a/mm/hugetlb.c
@@ -4200,7 +4200,7 @@ long follow_hugetlb_page(struct mm_struc
 		 * If we have a pending SIGKILL, don't keep faulting pages and
 		 * potentially allocating memory.
 		 */
-		if (unlikely(fatal_signal_pending(current))) {
+		if (fatal_signal_pending(current)) {
 			remainder = 0;
 			break;
 		}
_

Patches currently in -mm which might be from dave@xxxxxxxxxxxx are

fs-epoll-remove-max_nests-argument-from-ep_call_nested.patch
fs-epoll-simplify-ep_send_events_proc-ready-list-loop.patch
fs-epoll-drop-ovflist-branch-prediction.patch
fs-epoll-robustify-ep-mtx-held-checks.patch
fs-epoll-reduce-the-scope-of-wq-lock-in-epoll_wait.patch
fs-epoll-reduce-the-scope-of-wq-lock-in-epoll_wait-fix.patch
fs-epoll-avoid-barrier-after-an-epoll_wait2-timeout.patch
fs-epoll-avoid-barrier-after-an-epoll_wait2-timeout-fix.patch
fs-epoll-rename-check_events-label-to-send_events.patch
fs-epoll-deal-with-wait_queue-only-once.patch
locking-mutex-remove-caller-signal_pending-branch-predictions.patch
kernel-sched-remove-caller-signal_pending-branch-predictions.patch
arch-arc-remove-caller-signal_pending_branch-predictions.patch
mm-remove-caller-signal_pending-branch-predictions.patch
fs-remove-caller-signal_pending-branch-predictions.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux