Commit 4829d086 authored by Steven Rostedt's avatar Steven Rostedt Committed by Thomas Gleixner

rtmutex: remove double xchg

No reason to update current if we are running. We'll do that when we exit
the loop.
Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 090e2db9
......@@ -736,8 +736,6 @@ rt_spin_lock_slowlock(struct rt_mutex *lock)
update_current(TASK_UNINTERRUPTIBLE, &saved_state);
if (waiter.task)
schedule_rt_mutex(lock);
else
update_current(TASK_RUNNING_MUTEX, &saved_state);
atomic_spin_lock_irqsave(&lock->wait_lock, flags);
current->lock_depth = saved_lock_depth;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment