Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa45f116 authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Linus Torvalds
Browse files

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@stgolabs.net


Signed-off-by: default avatarDavidlohr Bueso <dave@stgolabs.net>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d8d7d842
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1125,7 +1125,7 @@ static inline int wait_on_page_bit_common(wait_queue_head_t *q,
				break;
				break;
		}
		}


		if (unlikely(signal_pending_state(state, current))) {
		if (signal_pending_state(state, current)) {
			ret = -EINTR;
			ret = -EINTR;
			break;
			break;
		}
		}
+1 −1
Original line number Original line Diff line number Diff line
@@ -727,7 +727,7 @@ static long __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
		 * If we have a pending SIGKILL, don't keep faulting pages and
		 * If we have a pending SIGKILL, don't keep faulting pages and
		 * potentially allocating memory.
		 * potentially allocating memory.
		 */
		 */
		if (unlikely(fatal_signal_pending(current))) {
		if (fatal_signal_pending(current)) {
			ret = -ERESTARTSYS;
			ret = -ERESTARTSYS;
			goto out;
			goto out;
		}
		}
+1 −1
Original line number Original line Diff line number Diff line
@@ -4231,7 +4231,7 @@ long follow_hugetlb_page(struct mm_struct *mm, struct vm_area_struct *vma,
		 * If we have a pending SIGKILL, don't keep faulting pages and
		 * If we have a pending SIGKILL, don't keep faulting pages and
		 * potentially allocating memory.
		 * potentially allocating memory.
		 */
		 */
		if (unlikely(fatal_signal_pending(current))) {
		if (fatal_signal_pending(current)) {
			remainder = 0;
			remainder = 0;
			break;
			break;
		}
		}