The patch included 2 attachments - one was making the 3 function non static.
SuSv3 - mq_receive:
If more than one thread is waiting to receive a message when a message
arrives at an empty queue and the Priority Scheduling option is supported, then
the thread of highest priority that has been waiting the longest shall be
selected to receive the message. Otherwise, it is unspecified which waiting
thread receives the message.
--- snip ---
We could implement some kind of priority sorted waitqueue.
I read about some prio aware waitqueue patch (from Ingo Molnar) used
by a NGPT developer for the futexes (I.Gonzalez?)
I thought about some waitqueue in the kernel, that at least put
realtime processes at the front of the waitqueue.
It would be nice to have some generic mechanism in the kernel since
only prio aware message read feature does not buy you much, IMHO
I will look in Ingos folder and also for the patch for the futexes.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/