[GIT PULL] scheduler fix

Ingo Molnar posted 1 patch 2 years, 3 months ago
There is a newer version of this series
kernel/sched/cpupri.c | 1 +
1 file changed, 1 insertion(+)
[GIT PULL] scheduler fix
Posted by Ingo Molnar 2 years, 3 months ago

Linus,

Please pull the latest sched/urgent git tree from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-2023-10-01

   # HEAD: fc09027786c900368de98d03d40af058bcb01ad9 sched/rt: Fix live lock between select_fallback_rq() and RT push

Fix a RT tasks related lockup/live-lock during CPU offlining.

 Thanks,

	Ingo

------------------>
Joel Fernandes (Google) (1):
      sched/rt: Fix live lock between select_fallback_rq() and RT push


 kernel/sched/cpupri.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/sched/cpupri.c b/kernel/sched/cpupri.c
index a286e726eb4b..42c40cfdf836 100644
--- a/kernel/sched/cpupri.c
+++ b/kernel/sched/cpupri.c
@@ -101,6 +101,7 @@ static inline int __cpupri_find(struct cpupri *cp, struct task_struct *p,
 
 	if (lowest_mask) {
 		cpumask_and(lowest_mask, &p->cpus_mask, vec->mask);
+		cpumask_and(lowest_mask, lowest_mask, cpu_active_mask);
 
 		/*
 		 * We have to ensure that we have at least one bit
Re: [GIT PULL] scheduler fix
Posted by pr-tracker-bot@kernel.org 2 years, 3 months ago
The pull request you sent on Sun, 1 Oct 2023 10:43:05 +0200:

> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-2023-10-01

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/c5ecffe6d3e438dd7094ac37461e77960269aff0

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html