]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc/sem: separate wait-for-zero and alter tasks into seperate queues
authorManfred Spraul <manfred@colorfullife.com>
Thu, 27 Jun 2013 23:54:06 +0000 (09:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:39:03 +0000 (16:39 +1000)
commita01404e01abd71b308c910fdf17f50fc61729741
treef71cc3bb087262b328d69f91480baf5861f3843d
parent68257ae3f5159b1714b6da5a769ac3d9d6a7aec9
ipc/sem: separate wait-for-zero and alter tasks into seperate queues

Introduce separate queues for operations that do not modify the semaphore
values.  Advantages:

- Simpler logic in check_restart().
- Faster update_queue(): Right now, all wait-for-zero operations
  are always tested, even if the semaphore value is not 0.
- wait-for-zero gets again priority, as in linux <=3.0.9

Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Davidlohr Bueso <davidlohr.bueso@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/sem.h
ipc/sem.c