Commit e0176a2f authored by Ross Zwisler's avatar Ross Zwisler Committed by Linus Torvalds

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.comSigned-off-by: default avatarRoss 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent eec48525
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include "regression.h" #include "regression.h"
static RADIX_TREE(mt_tree, GFP_KERNEL); static RADIX_TREE(mt_tree, GFP_KERNEL);
static pthread_mutex_t mt_lock; static pthread_mutex_t mt_lock = PTHREAD_MUTEX_INITIALIZER;
struct page { struct page {
pthread_mutex_t lock; pthread_mutex_t lock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment