<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/kernel/locking/mcs_spinlock.c, branch v3.15</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v3.15</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.15'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2014-03-11T11:14:56Z</updated>
<entry>
<title>locking/mutexes: Introduce cancelable MCS lock for adaptive spinning</title>
<updated>2014-03-11T11:14:56Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>peterz@infradead.org</email>
</author>
<published>2014-01-29T11:51:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fb0527bd5ea99bfeb2dd91e3c1433ecf745d6b99'/>
<id>urn:sha1:fb0527bd5ea99bfeb2dd91e3c1433ecf745d6b99</id>
<content type='text'>
Since we want a task waiting for a mutex_lock() to go to sleep and
reschedule on need_resched() we must be able to abort the
mcs_spin_lock() around the adaptive spin.

Therefore implement a cancelable mcs lock.

Signed-off-by: Peter Zijlstra &lt;peterz@infradead.org&gt;
Cc: chegu_vinod@hp.com
Cc: paulmck@linux.vnet.ibm.com
Cc: Waiman.Long@hp.com
Cc: torvalds@linux-foundation.org
Cc: tglx@linutronix.de
Cc: riel@redhat.com
Cc: akpm@linux-foundation.org
Cc: davidlohr@hp.com
Cc: hpa@zytor.com
Cc: andi@firstfloor.org
Cc: aswin@hp.com
Cc: scott.norton@hp.com
Cc: Jason Low &lt;jason.low2@hp.com&gt;
Link: http://lkml.kernel.org/n/tip-62hcl5wxydmjzd182zhvk89m@git.kernel.org
Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
</content>
</entry>
</feed>
