Re: [PATCH 2/4] MCS spinlocks: Convert osq lock to atomic_t to reduce overhead

2014-07-08 Thread Jason Low
On Tue, 2014-07-08 at 09:38 -0400, Steven Rostedt wrote: > On Mon, 7 Jul 2014 11:50:17 -0700 > Jason Low wrote: > > #ifdef CONFIG_RWSEM_GENERIC_SPINLOCK > > @@ -33,7 +32,7 @@ struct rw_semaphore { > > * if the owner is running on the cpu. > > */ > > struct task_struct *owner; > >

Re: [PATCH 2/4] MCS spinlocks: Convert osq lock to atomic_t to reduce overhead

2014-07-08 Thread Steven Rostedt
On Mon, 7 Jul 2014 11:50:17 -0700 Jason Low wrote: > The cancellable MCS spinlock is currently used to queue threads that are > doing optimistic spinning. It uses per-cpu nodes, where a thread obtaining > the lock would access and queue the local node corresponding to the CPU that > it's

Re: [PATCH 2/4] MCS spinlocks: Convert osq lock to atomic_t to reduce overhead

2014-07-08 Thread Steven Rostedt
On Mon, 7 Jul 2014 11:50:17 -0700 Jason Low jason.l...@hp.com wrote: The cancellable MCS spinlock is currently used to queue threads that are doing optimistic spinning. It uses per-cpu nodes, where a thread obtaining the lock would access and queue the local node corresponding to the CPU that

Re: [PATCH 2/4] MCS spinlocks: Convert osq lock to atomic_t to reduce overhead

2014-07-08 Thread Jason Low
On Tue, 2014-07-08 at 09:38 -0400, Steven Rostedt wrote: On Mon, 7 Jul 2014 11:50:17 -0700 Jason Low jason.l...@hp.com wrote: #ifdef CONFIG_RWSEM_GENERIC_SPINLOCK @@ -33,7 +32,7 @@ struct rw_semaphore { * if the owner is running on the cpu. */ struct task_struct

[PATCH 2/4] MCS spinlocks: Convert osq lock to atomic_t to reduce overhead

2014-07-07 Thread Jason Low
The cancellable MCS spinlock is currently used to queue threads that are doing optimistic spinning. It uses per-cpu nodes, where a thread obtaining the lock would access and queue the local node corresponding to the CPU that it's running on. Currently, the cancellable MCS lock is implemented by

[PATCH 2/4] MCS spinlocks: Convert osq lock to atomic_t to reduce overhead

2014-07-07 Thread Jason Low
The cancellable MCS spinlock is currently used to queue threads that are doing optimistic spinning. It uses per-cpu nodes, where a thread obtaining the lock would access and queue the local node corresponding to the CPU that it's running on. Currently, the cancellable MCS lock is implemented by