Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57475
b: refs/heads/master
c: c0d1d2b
h: refs/heads/master
i:
  57473: 2b90c67
  57471: e52d192
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Jun 9, 2007
1 parent b1eda00 commit 5165188
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 51b94d2a5a90d4800e74d7348bcde098a28f4fb3
refs/heads/master: c0d1d2bf5a28f78def7b68ca1eb5ba31aafd43a1
11 changes: 9 additions & 2 deletions trunk/kernel/rtmutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,9 +636,16 @@ rt_mutex_slowlock(struct rt_mutex *lock, int state,
* all over without going into schedule to try
* to get the lock now:
*/
if (unlikely(!waiter.task))
if (unlikely(!waiter.task)) {
/*
* Reset the return value. We might
* have returned with -EDEADLK and the
* owner released the lock while we
* were walking the pi chain.
*/
ret = 0;
continue;

}
if (unlikely(ret))
break;
}
Expand Down

0 comments on commit 5165188

Please sign in to comment.