Re: [RFC][PATCH 2/5] mutex: Use p->oncpu for the adaptive spin

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Friday, December 17, 2010 - 12:17 pm

On 12/16, Peter Zijlstra wrote:

I am not sure we need rmb() or even read_barrier_depends(), I think
the simple barrier() should be enough. Although rcu_dereference()
may be more clean.

We don't really care about the "correct" result of *owner. All we need,
we should ensure it is safe to dereference this address. If CPU itself
does something like "readahead" before we verified "lock->owner == owner"
under RCU lock, this shouldn't lead to the fault.

Oleg.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH 0/5] Reduce runqueue lock contention -v2, Peter Zijlstra, (Thu Dec 16, 7:56 am)
[RFC][PATCH 1/5] sched: Always provide p->oncpu, Peter Zijlstra, (Thu Dec 16, 7:56 am)
[RFC][PATCH 3/5] sched: Change the ttwu success details, Peter Zijlstra, (Thu Dec 16, 7:56 am)
[RFC][PATCH 4/5] sched: Clean up ttwu stats, Peter Zijlstra, (Thu Dec 16, 7:56 am)
[RFC][PATCH 5/5] sched: Reduce ttwu rq->lock contention, Peter Zijlstra, (Thu Dec 16, 7:56 am)
Re: [RFC][PATCH 3/5] sched: Change the ttwu success details, Frederic Weisbecker, (Thu Dec 16, 8:23 am)
Re: [RFC][PATCH 5/5] sched: Reduce ttwu rq->lock contention, Frederic Weisbecker, (Thu Dec 16, 8:31 am)
Re: [RFC][PATCH 3/5] sched: Change the ttwu success details, Frederic Weisbecker, (Thu Dec 16, 8:35 am)
Re: [RFC][PATCH 3/5] sched: Change the ttwu success details, Frederic Weisbecker, (Thu Dec 16, 8:45 am)
Re: [RFC][PATCH 0/5] Reduce runqueue lock contention -v2, Frank Rowand, (Thu Dec 16, 12:12 pm)
Re: [RFC][PATCH 0/5] Reduce runqueue lock contention -v2, Frank Rowand, (Thu Dec 16, 12:36 pm)
Re: [RFC][PATCH 0/5] Reduce runqueue lock contention -v2, Frank Rowand, (Thu Dec 16, 12:36 pm)
Re: [RFC][PATCH 0/5] Reduce runqueue lock contention -v2, Frank Rowand, (Thu Dec 16, 12:39 pm)
Re: [RFC][PATCH 0/5] Reduce runqueue lock contention -v2, Peter Zijlstra, (Thu Dec 16, 12:42 pm)
Re: [RFC][PATCH 2/5] mutex: Use p->oncpu for the adaptive spin, Oleg Nesterov, (Fri Dec 17, 12:17 pm)
Re: [RFC][PATCH 1/5] sched: Always provide p->oncpu, Frank Rowand, (Fri Dec 17, 6:03 pm)
Re: [RFC][PATCH 4/5] sched: Clean up ttwu stats, Frank Rowand, (Fri Dec 17, 6:09 pm)