mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 008/102] radix-tree tests: properly initialize mutex
@ 2016-10-11 20:51 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-10-11 20:51 UTC (permalink / raw)
  To: torvalds, mm-commits, akpm, ross.zwisler, aryabinin, dvyukov,
	koct9i, shuahkh

From: Ross Zwisler <ross.zwisler@linux.intel.com>
Subject: radix-tree tests: properly initialize mutex

The pthread_mutex_t in regression1.c wasn't being initialized properly.

Link: http://lkml.kernel.org/r/20160815194237.25967-4-ross.zwisler@linux.intel.com
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 tools/testing/radix-tree/regression1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN tools/testing/radix-tree/regression1.c~radix-tree-tests-properly-initialize-mutex tools/testing/radix-tree/regression1.c
--- a/tools/testing/radix-tree/regression1.c~radix-tree-tests-properly-initialize-mutex
+++ a/tools/testing/radix-tree/regression1.c
@@ -43,7 +43,7 @@
 #include "regression.h"
 
 static RADIX_TREE(mt_tree, GFP_KERNEL);
-static pthread_mutex_t mt_lock;
+static pthread_mutex_t mt_lock = PTHREAD_MUTEX_INITIALIZER;
 
 struct page {
 	pthread_mutex_t lock;
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-11 20:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-11 20:51 [patch 008/102] radix-tree tests: properly initialize mutex akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).