On Tue, May 13, 2008 at 04:11:29PM +0200, Ingo Molnar wrote:
You're not understanding me. This is completely inapplicable to the BKL
because only one task can be in wakeup at a time (due to it having a
maximum value of 1). There's no way to hit this race with the BKL.
The only kind of semaphore that can hit this race is the kind that can
have more than one wakeup in progress at a time -- ie one which can have
a value >1. Like completions and real counting semaphores.
So the only thing worth talking about (and indeed, it's now entirely
moot) is what's the best way to solve this problem /for this kind of
semaphore/.
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--