summaryrefslogtreecommitdiff
path: root/ipc/compat_mq.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2011-09-14 09:57:04 (GMT)
committerScott Wood <scottwood@freescale.com>2015-02-13 22:21:01 (GMT)
commit7ab9314592b41fa794a905753eeeb70e683f6477 (patch)
tree7b75f7718489073d749c0d2ef2f3491230be840f /ipc/compat_mq.c
parent4b4abe01452b5859cb24776803e405a1a349fde7 (diff)
downloadlinux-fsl-qoriq-7ab9314592b41fa794a905753eeeb70e683f6477.tar.xz
ipc/sem: Rework semaphore wakeups
Current sysv sems have a weird ass wakeup scheme that involves keeping preemption disabled over a potential O(n^2) loop and busy waiting on that on other CPUs. Kill this and simply wake the task directly from under the sem_lock. This was discovered by a migrate_disable() debug feature that disallows: spin_lock(); preempt_disable(); spin_unlock() preempt_enable(); Cc: Manfred Spraul <manfred@colorfullife.com> Suggested-by: Thomas Gleixner <tglx@linutronix.de> Reported-by: Mike Galbraith <efault@gmx.de> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Manfred Spraul <manfred@colorfullife.com> Link: http://lkml.kernel.org/r/1315994224.5040.1.camel@twins Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'ipc/compat_mq.c')
0 files changed, 0 insertions, 0 deletions