Re: [PATCH v3 0/4] MCS Lock: MCS lock code cleanup and optimizations

2013-11-06 Thread Michel Lespinasse
On Wed, Nov 6, 2013 at 1:42 PM, H. Peter Anvin wrote: > Perhaps I'm missing something here, but what is MCS lock and what is the > value? Its a kind of queued lock where each waiter spins on a a separate memory word, instead of having them all spin on the lock's memory word. This helps with

Re: [PATCH v3 0/4] MCS Lock: MCS lock code cleanup and optimizations

2013-11-06 Thread H. Peter Anvin
On 11/06/2013 01:36 PM, Tim Chen wrote: > In this patch series, we separated out the MCS lock code which was > previously embedded in the mutex.c. This allows for easier reuse of > MCS lock in other places like rwsem and qrwlock. We also did some micro > optimizations and barrier cleanup. > >

[PATCH v3 0/4] MCS Lock: MCS lock code cleanup and optimizations

2013-11-06 Thread Tim Chen
In this patch series, we separated out the MCS lock code which was previously embedded in the mutex.c. This allows for easier reuse of MCS lock in other places like rwsem and qrwlock. We also did some micro optimizations and barrier cleanup. This patches were previously part of the rwsem

[PATCH v3 0/4] MCS Lock: MCS lock code cleanup and optimizations

2013-11-06 Thread Tim Chen
In this patch series, we separated out the MCS lock code which was previously embedded in the mutex.c. This allows for easier reuse of MCS lock in other places like rwsem and qrwlock. We also did some micro optimizations and barrier cleanup. This patches were previously part of the rwsem

Re: [PATCH v3 0/4] MCS Lock: MCS lock code cleanup and optimizations

2013-11-06 Thread H. Peter Anvin
On 11/06/2013 01:36 PM, Tim Chen wrote: In this patch series, we separated out the MCS lock code which was previously embedded in the mutex.c. This allows for easier reuse of MCS lock in other places like rwsem and qrwlock. We also did some micro optimizations and barrier cleanup. This

Re: [PATCH v3 0/4] MCS Lock: MCS lock code cleanup and optimizations

2013-11-06 Thread Michel Lespinasse
On Wed, Nov 6, 2013 at 1:42 PM, H. Peter Anvin h...@zytor.com wrote: Perhaps I'm missing something here, but what is MCS lock and what is the value? Its a kind of queued lock where each waiter spins on a a separate memory word, instead of having them all spin on the lock's memory word. This