8ae002
commit 673659263d956f45f1ce0c66900fa7f1129db74a
8ae002
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
8ae002
Date:   Mon May 26 11:14:25 2014 +0200
8ae002
8ae002
    Disable lock elision for PTHREAD_MUTEX_NORMAL.
8ae002
Index: glibc-2.17-c758a686/nptl/pthread_mutexattr_settype.c
8ae002
===================================================================
8ae002
--- glibc-2.17-c758a686.orig/nptl/pthread_mutexattr_settype.c
8ae002
+++ glibc-2.17-c758a686/nptl/pthread_mutexattr_settype.c
8ae002
@@ -32,7 +32,7 @@ __pthread_mutexattr_settype (attr, kind)
8ae002
 
8ae002
   /* Cannot distinguish between DEFAULT and NORMAL. So any settype
8ae002
      call disables elision for now.  */
8ae002
-  if (kind == PTHREAD_MUTEX_DEFAULT)
8ae002
+  if (kind == PTHREAD_MUTEX_NORMAL)
8ae002
     kind |= PTHREAD_MUTEX_NO_ELISION_NP;
8ae002
 
8ae002
   iattr = (struct pthread_mutexattr *) attr;