X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=ltt-probes.c;h=ab4b349ee2c47c9ec581a67aaf971c2695639a26;hb=edeb3137b6064818f310567ded5c60e442a933e6;hp=249fc333d02b7cd9a95a79404085b815aa171c0f;hpb=a51729c7236fffff3f514174fb3b10a07e1a2b58;p=lttng-modules.git diff --git a/ltt-probes.c b/ltt-probes.c index 249fc333..ab4b349e 100644 --- a/ltt-probes.c +++ b/ltt-probes.c @@ -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