[PATCH 2.6.21-rc3-mm2 1/4] futex priority based wakeup

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pierre.Peiffer
Date: Tuesday, March 13, 2007 - 2:52 am

Today, all threads waiting for a given futex are woken in FIFO order (first
waiter woken first) instead of priority order.

This patch makes use of plist (pirotity ordered lists) instead of simple list in
futex_hash_bucket.

All non-RT threads are stored with priority MAX_RT_PRIO, causing them to be
woken last, in FIFO order (RT-threads are woken first, in priority order).

Signed-off-by: S
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2.6.21-rc3-mm2 1/4] futex priority based wakeup, Pierre.Peiffer, (Tue Mar 13, 2:52 am)