Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'sched-urgent-2020-05-31' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull scheduler fix from Thomas Gleixner:
"A single scheduler fix preventing a crash in NUMA balancing.

The current->mm check is not reliable as the mm might be temporary due
to use_mm() in a kthread. Check for PF_KTHREAD explictly"

* tag 'sched-urgent-2020-05-31' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched/fair: Don't NUMA balance for kthreads

+1 -1
+1 -1
kernel/sched/fair.c
··· 2908 2908 /* 2909 2909 * We don't care about NUMA placement if we don't have memory. 2910 2910 */ 2911 - if (!curr->mm || (curr->flags & PF_EXITING) || work->next != work) 2911 + if ((curr->flags & (PF_EXITING | PF_KTHREAD)) || work->next != work) 2912 2912 return; 2913 2913 2914 2914 /*