Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107662
b: refs/heads/master
c: 5b2becc
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Aug 5, 2008
1 parent abe8d5e commit 5499dfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 32194450330be327f3b25bf6b66298bd122599e9
refs/heads/master: 5b2becc8cffdccdd60c63099f592ddd35aa6c34f
4 changes: 1 addition & 3 deletions trunk/kernel/semaphore.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,7 @@ static inline int __sched __down_common(struct semaphore *sem, long state,
waiter.up = 0;

for (;;) {
if (state == TASK_INTERRUPTIBLE && signal_pending(task))
goto interrupted;
if (state == TASK_KILLABLE && fatal_signal_pending(task))
if (signal_pending_state(state, task))
goto interrupted;
if (timeout <= 0)
goto timed_out;
Expand Down

0 comments on commit 5499dfa

Please sign in to comment.