X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttng-events.c;h=1ae894be3ea95b4e0ca11aaf90af605cd5b02a85;hb=47046cfcb4f3aa2df5047657889810c4cecddeea;hp=65bd0bf9ae6d45c4bbc0395d63211e9642330a59;hpb=d216ecaeeb6274154ace1317f61b9f3fe54ba857;p=lttng-modules.git diff --git a/lttng-events.c b/lttng-events.c index 65bd0bf9..1ae894be 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -20,6 +20,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +/* + * This page_alloc.h wrapper needs to be included before gfpflags.h because it + * overrides a function with a define. + */ +#include "wrapper/page_alloc.h" + #include #include #include @@ -637,7 +643,6 @@ struct lttng_event *_lttng_event_create(struct lttng_channel *chan, } hlist_add_head(&event->hlist, head); list_add(&event->list, &chan->session->events); - mutex_unlock(&sessions_mutex); return event; statedump_error: @@ -2115,7 +2120,9 @@ static int __init lttng_events_init(void) ret = wrapper_lttng_fixup_sig(THIS_MODULE); if (ret) return ret; - + ret = wrapper_get_pfnblock_flags_mask_init(); + if (ret) + return ret; ret = lttng_context_init(); if (ret) return ret;