diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-08-14 06:19:59 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-08-14 06:19:59 -0400 |
| commit | 8d7ccaa545490cdffdfaff0842436a8dd85cf47b (patch) | |
| tree | 8129b5907161bc6ae26deb3645ce1e280c5e1f51 /kernel/semaphore.c | |
| parent | b2139aa0eec330c711c5a279db361e5ef1178e78 (diff) | |
| parent | 30a2f3c60a84092c8084dfe788b710f8d0768cd4 (diff) | |
Merge commit 'v2.6.27-rc3' into x86/prototypes
Conflicts:
include/asm-x86/dma-mapping.h
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/semaphore.c')
| -rw-r--r-- | kernel/semaphore.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/semaphore.c b/kernel/semaphore.c index aaaeae8244e7..94a62c0d4ade 100644 --- a/kernel/semaphore.c +++ b/kernel/semaphore.c | |||
| @@ -212,9 +212,7 @@ static inline int __sched __down_common(struct semaphore *sem, long state, | |||
| 212 | waiter.up = 0; | 212 | waiter.up = 0; |
| 213 | 213 | ||
| 214 | for (;;) { | 214 | for (;;) { |
| 215 | if (state == TASK_INTERRUPTIBLE && signal_pending(task)) | 215 | if (signal_pending_state(state, task)) |
| 216 | goto interrupted; | ||
| 217 | if (state == TASK_KILLABLE && fatal_signal_pending(task)) | ||
| 218 | goto interrupted; | 216 | goto interrupted; |
| 219 | if (timeout <= 0) | 217 | if (timeout <= 0) |
| 220 | goto timed_out; | 218 | goto timed_out; |
