Re: [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.41-07

Ingo Molnar
2005-03-30T06:51:07Z

* Steven Rostedt <rostedt@goodmis.org> wrote:

> OK, I'm declaring defeat here. I've been fighting race conditions all
> day, and it's now 1 in the morning where I live. It looks like this
> implementation has no other choice but to have the waking up "pending
> owner" take the wait_list lock once again. How heavy of a overhead is
> that really?

as i mentioned it before, taking a lock is not a big issue at all. Since
you have to touch the lock data structure anyway (and all of it fits
into a single cacheline), it doesnt really matter whether it's atomic
flag setting/clearing, or raw spinlock based.

later on, once things are stable and well-understood, we can still
attempt to micro-optimize it.

Ingo