The patch titled Subject: mm: oom: let oom_reap_task and exit_mmap run concurrently, add unlikely has been added to the -mm tree. Its filename is mm-oom-let-oom_reap_task-and-exit_mmap-to-run-concurrently-fix-3.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-oom-let-oom_reap_task-and-exit_mmap-to-run-concurrently-fix-3.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-oom-let-oom_reap_task-and-exit_mmap-to-run-concurrently-fix-3.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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrea Arcangeli <aarcange@xxxxxxxxxx> Subject: mm: oom: let oom_reap_task and exit_mmap run concurrently, add unlikely Microoptimization to fold before merging. Link: http://lkml.kernel.org/r/20170817171240.GB5066@xxxxxxxxxx Signed-off-by: Andrea Arcangeli <aarcange@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/mmap.c~mm-oom-let-oom_reap_task-and-exit_mmap-to-run-concurrently-fix-3 mm/mmap.c --- a/mm/mmap.c~mm-oom-let-oom_reap_task-and-exit_mmap-to-run-concurrently-fix-3 +++ a/mm/mmap.c @@ -3003,7 +3003,7 @@ void exit_mmap(struct mm_struct *mm) unmap_vmas(&tlb, vma, 0, -1); set_bit(MMF_OOM_SKIP, &mm->flags); - if (tsk_is_oom_victim(current)) { + if (unlikely(tsk_is_oom_victim(current))) { /* * Wait for oom_reap_task() to stop working on this * mm. Because MMF_OOM_SKIP is already set before _ Patches currently in -mm which might be from aarcange@xxxxxxxxxx are userfaultfd-selftest-exercise-uffdio_copy-zeropage-eexist.patch userfaultfd-selftest-explicit-failure-if-the-sigbus-test-failed.patch userfaultfd-call-userfaultfd_unmap_prep-only-if-__split_vma-succeeds.patch userfaultfd-provide-pid-in-userfault-msg-add-feat-union.patch mm-oom-let-oom_reap_task-and-exit_mmap-to-run-concurrently.patch mm-oom-let-oom_reap_task-and-exit_mmap-to-run-concurrently-fix.patch mm-oom-let-oom_reap_task-and-exit_mmap-to-run-concurrently-fix-3.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html