X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lib%2Fringbuffer%2Ffrontend_types.h;h=0fa2dddfce5efb9339fac01fe77a869786d303f9;hb=f40270adf3e31289ac13a482e830b4a19d8df3bf;hp=d269c00a685221086448b249724326f6acc5b81f;hpb=8fa75f340f4cc3008c528a12185196c2ceec3bac;p=lttng-modules.git diff --git a/lib/ringbuffer/frontend_types.h b/lib/ringbuffer/frontend_types.h index d269c00a..0fa2dddf 100644 --- a/lib/ringbuffer/frontend_types.h +++ b/lib/ringbuffer/frontend_types.h @@ -16,6 +16,7 @@ * Dual LGPL v2.1/GPL v2 license. */ +#include #include "../../wrapper/ringbuffer/config.h" #include "../../wrapper/ringbuffer/backend_types.h" #include "../../wrapper/prio_heap.h" /* For per-CPU read-side iterator */ @@ -62,7 +63,7 @@ struct channel { int hp_iter_enable:1; /* Enable hp iter notif. */ wait_queue_head_t read_wait; /* reader wait queue */ struct channel_iter iter; /* Channel read-side iterator */ - atomic_long_t read_ref; /* Reader reference count */ + struct kref ref; /* Reference count */ }; /* Per-subbuffer commit counters used on the hot path */