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