]> 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>
Wed, 19 Jun 2013 00:08:31 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:47 +0000 (17:27 +1000)
commit5ea72923512e4eae71cd283e9cb8786668ce4cff
tree20e605f7ade5a8f663de39f485ceac8fe212517f
parent5ad6e5012a5be2dd080498fca69c8a6cdecc9262
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