diff options
| author | Thomas Gleixner <[email protected]> | 2007-06-08 13:46:57 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-06-08 17:23:34 -0700 |
| commit | c0d1d2bf5a28f78def7b68ca1eb5ba31aafd43a1 (patch) | |
| tree | c51260793d12005dcc244a1304193ce9898ed9cc /include/linux/debugobjects.h | |
| parent | 51b94d2a5a90d4800e74d7348bcde098a28f4fb3 (diff) | |
rt-mutex: fix stale return value
Alexey Kuznetsov found some problems in the pi-futex code.
The major problem is a stale return value in rt_mutex_slowlock():
When the pi chain walk returns -EDEADLK, but the waiter was woken up during
the phases where the locks were dropped, the rtmutex could be acquired, but
due to the stale return value -EDEADLK returned to the caller.
Reset the return value in the retry path.
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Alexey Kuznetsov <[email protected]>
Cc: Ulrich Drepper <[email protected]>
Cc: Eric Dumazet <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions