Add missing mutex to event list
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 24 May 2011 17:22:35 +0000 (13:22 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 24 May 2011 17:22:35 +0000 (13:22 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-probes.c

index 249fc333d02b7cd9a95a79404085b815aa171c0f..ab4b349ee2c47c9ec581a67aaf971c2695639a26 100644 (file)
@@ -90,6 +90,7 @@ void *tp_list_start(struct seq_file *m, loff_t *pos)
        struct lttng_probe_desc *probe_desc;
        int iter = 0, i;
 
+       mutex_lock(&probe_mutex);
        list_for_each_entry(probe_desc, &probe_list, head) {
                for (i = 0; i < probe_desc->nr_events; i++) {
                        if (iter++ >= *pos)
@@ -120,6 +121,7 @@ void *tp_list_next(struct seq_file *m, void *p, loff_t *ppos)
 static
 void tp_list_stop(struct seq_file *m, void *p)
 {
+       mutex_unlock(&probe_mutex);
 }
 
 static
This page took 0.026426 seconds and 4 git commands to generate.