diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-08-09 14:56:51 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-08-09 14:56:51 -0700 |
commit | 713e3e1875749f341247a0c922e6ddd38fbd991c (patch) | |
tree | 0419bf8fbb3bf28a275d196bcdcb0d00cf773986 /kernel/rtmutex.c | |
parent | 7b2aa037e878c939676675969983284a02958ae3 (diff) | |
parent | 0e692a94e378628b7d527260ad939894454bcca8 (diff) | |
download | kernel-crypto-713e3e1875749f341247a0c922e6ddd38fbd991c.tar.gz kernel-crypto-713e3e1875749f341247a0c922e6ddd38fbd991c.tar.xz kernel-crypto-713e3e1875749f341247a0c922e6ddd38fbd991c.zip |
Merge branch 'core-fixes-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-fixes-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
lockdep: Fix typos in documentation
lockdep: Fix file mode of lock_stat
rtmutex: Avoid deadlock in rt_mutex_start_proxy_lock()
Diffstat (limited to 'kernel/rtmutex.c')
-rw-r--r-- | kernel/rtmutex.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c index fcd107a78c5..29bd4baf9e7 100644 --- a/kernel/rtmutex.c +++ b/kernel/rtmutex.c @@ -1039,16 +1039,14 @@ int rt_mutex_start_proxy_lock(struct rt_mutex *lock, if (!rt_mutex_owner(lock) || try_to_steal_lock(lock, task)) { /* We got the lock for task. */ debug_rt_mutex_lock(lock); - rt_mutex_set_owner(lock, task, 0); - + spin_unlock(&lock->wait_lock); rt_mutex_deadlock_account_lock(lock, task); return 1; } ret = task_blocks_on_rt_mutex(lock, waiter, task, detect_deadlock); - if (ret && !waiter->task) { /* * Reset the return value. We might have |