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 'locking-urgent-2023-02-11' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull locking fix from Ingo Molnar:
"Fix an rtmutex missed-wakeup bug"

* tag 'locking-urgent-2023-02-11' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
rtmutex: Ensure that the top waiter is always woken up

+3 -2
+3 -2
kernel/locking/rtmutex.c
··· 901 901 * then we need to wake the new top waiter up to try 902 902 * to get the lock. 903 903 */ 904 - if (prerequeue_top_waiter != rt_mutex_top_waiter(lock)) 905 - wake_up_state(waiter->task, waiter->wake_state); 904 + top_waiter = rt_mutex_top_waiter(lock); 905 + if (prerequeue_top_waiter != top_waiter) 906 + wake_up_state(top_waiter->task, top_waiter->wake_state); 906 907 raw_spin_unlock_irq(&lock->wait_lock); 907 908 return 0; 908 909 }