X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lib%2Fringbuffer%2Fbackend_types.h;fp=lib%2Fringbuffer%2Fbackend_types.h;h=4578185c3c75d8a1fb307a5e78ddbb1567bbd878;hb=5a8fd222992df9bbb709836e5bf4ca053dd776c3;hp=3d1fcc064a332973ce64449596866027bbfc6008;hpb=daaf627aaa66c434d9274c6616977a6edc07b6ca;p=lttng-modules.git diff --git a/lib/ringbuffer/backend_types.h b/lib/ringbuffer/backend_types.h index 3d1fcc06..4578185c 100644 --- a/lib/ringbuffer/backend_types.h +++ b/lib/ringbuffer/backend_types.h @@ -72,7 +72,12 @@ struct channel_backend { u64 start_tsc; /* Channel creation TSC value */ void *priv; /* Client-specific information */ struct notifier_block cpu_hp_notifier; /* CPU hotplug notifier */ - const struct lib_ring_buffer_config *config; /* Ring buffer configuration */ + /* + * We need to copy config because the module containing the + * source config can vanish before the last reference to this + * channel's streams is released. + */ + struct lib_ring_buffer_config config; /* Ring buffer configuration */ cpumask_var_t cpumask; /* Allocated per-cpu buffers cpumask */ char name[NAME_MAX]; /* Channel name */ };