projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f83a0ff
)
[PATCH] blktrace: remember to initialize mutex
author
Alan D. Brunelle
<Alan.Brunelle@hp.com>
Thu, 2 Feb 2006 08:16:58 +0000
(09:16 +0100)
committer
Jens Axboe
<axboe@suse.de>
Thu, 2 Feb 2006 08:16:58 +0000
(09:16 +0100)
blktrace.c
patch
|
blob
|
blame
|
history
diff --git
a/blktrace.c
b/blktrace.c
index 337f142631ce721a1077b5fbfa48f58074b375c4..992b4eb9af988005aeb6e1b41f9468b0ca42f296 100644
(file)
--- a/
blktrace.c
+++ b/
blktrace.c
@@
-557,6
+557,7
@@
static int start_threads(struct device_information *dip)
tip->cpu = j;
tip->device = dip;
tip->events_processed = 0;
+ pthread_mutex_init(&tip->lock, NULL);
INIT_LIST_HEAD(&tip->subbuf_list);
tip->leftover_ts = NULL;