2020-04-21 20:13:52 +00:00
|
|
|
From e1744f07e1c8a1ac358a3488d40bfc17164dc397 Mon Sep 17 00:00:00 2001
|
2019-08-18 21:33:52 +00:00
|
|
|
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
|
|
Date: Wed, 26 Jun 2019 17:44:13 +0200
|
2020-04-21 20:13:52 +00:00
|
|
|
Subject: [PATCH 273/325] Revert "futex: Ensure lock/unlock symetry versus
|
2019-08-18 21:33:52 +00:00
|
|
|
pi_lock and hash bucket lock"
|
2020-04-21 20:13:52 +00:00
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.115-rt48.tar.xz
|
2019-08-18 21:33:52 +00:00
|
|
|
|
|
|
|
[ Upstream commit 6a773b70cf105b46298ed3b44e77c102ce31d9ec ]
|
|
|
|
|
|
|
|
Drop the RT fixup, the futex code will be changed to avoid the need for
|
|
|
|
the workaround.
|
|
|
|
|
|
|
|
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
|
|
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
|
|
|
|
---
|
|
|
|
kernel/futex.c | 2 --
|
|
|
|
1 file changed, 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/kernel/futex.c b/kernel/futex.c
|
2020-04-21 20:13:52 +00:00
|
|
|
index 084527af43d4..b99266393c52 100644
|
2019-08-18 21:33:52 +00:00
|
|
|
--- a/kernel/futex.c
|
|
|
|
+++ b/kernel/futex.c
|
2020-04-21 20:13:52 +00:00
|
|
|
@@ -938,9 +938,7 @@ void exit_pi_state_list(struct task_struct *curr)
|
2019-08-18 21:33:52 +00:00
|
|
|
if (head->next != next) {
|
|
|
|
/* retain curr->pi_lock for the loop invariant */
|
|
|
|
raw_spin_unlock(&pi_state->pi_mutex.wait_lock);
|
|
|
|
- raw_spin_unlock_irq(&curr->pi_lock);
|
|
|
|
spin_unlock(&hb->lock);
|
|
|
|
- raw_spin_lock_irq(&curr->pi_lock);
|
|
|
|
put_pi_state(pi_state);
|
|
|
|
continue;
|
|
|
|
}
|
2020-01-03 23:36:11 +00:00
|
|
|
--
|
2020-04-09 19:44:24 +00:00
|
|
|
2.25.1
|
2020-01-03 23:36:11 +00:00
|
|
|
|