commit | 0b0577f6080c0645b079dcc03fdbaf40d928beb8 | [log] [tgz] |
---|---|---|
author | Manfred Spraul <[email protected]> | Wed Nov 02 13:38:52 2011 -0700 |
committer | Linus Torvalds <[email protected]> | Wed Nov 02 16:07:01 2011 -0700 |
tree | 0dcedf3f2e6c3aa9c363a4c6272225ebfa1c61c5 | |
parent | 3c24783bb2deafaa106b7e69a97540071afc590c [diff] |
ipc/sem.c: handle spurious wakeups semtimedop() does not handle spurious wakeups, it returns -EINTR to user space. Most other schedule() users would just loop and not return to user space. The patch adds such a loop to semtimedop() Signed-off-by: Manfred Spraul <[email protected]> Reported-by: Peter Zijlstra <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Mike Galbraith <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>