]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc/sem.c: handle spurious wakeups
authorManfred Spraul <manfred@colorfullife.com>
Mon, 24 Oct 2011 15:00:05 +0000 (02:00 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:08:18 +0000 (20:08 +1100)
commitbc8e06b8d9ef29a49c412027ae917f6471a850c2
treef0124455d858353e30cf0176ae7113651beb6d14
parentd9428e8708b10c857f1678635157662189cb10eb
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 <manfred@colorfullife.com>
Reported-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Mike Galbraith <efault@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/sem.c