Re: [PATCH] rwsem: Support optimistic spinning

2014-04-28 Thread Davidlohr Bueso
On Mon, 2014-04-28 at 09:52 +0200, Peter Zijlstra wrote: > On Tue, Apr 22, 2014 at 03:19:26PM -0700, Davidlohr Bueso wrote: > > --- > > include/linux/rwsem.h | 9 +- > > kernel/locking/rwsem-xadd.c | 213 > > +++- > > kernel/locking/rwsem.c |

Re: [PATCH] rwsem: Support optimistic spinning

2014-04-28 Thread Peter Zijlstra
On Tue, Apr 22, 2014 at 03:19:26PM -0700, Davidlohr Bueso wrote: > --- > include/linux/rwsem.h | 9 +- > kernel/locking/rwsem-xadd.c | 213 > +++- > kernel/locking/rwsem.c | 31 ++- > 3 files changed, 231 insertions(+), 22 deletions(-) rw

Re: [PATCH] rwsem: Support optimistic spinning

2014-04-27 Thread Davidlohr Bueso
ping? On Tue, 2014-04-22 at 15:19 -0700, Davidlohr Bueso wrote: > We have reached the point where our mutexes are quite fine tuned > for a number of situations. This includes the use of heuristics > and optimistic spinning, based on MCS locking techniques. > > Exclusive ownership of read-write se