Fix: handle concurrent flush vs get_next_subbuf on metadata cache
[lttng-modules.git] / lttng-abi.c
index 64af55fb24938db7491a39483dd2071d0c7ede3d..cffebcd8b0fc60a646101d02553bc87a269a6272 100644 (file)
@@ -841,6 +841,7 @@ int lttng_abi_open_metadata_stream(struct file *channel_file)
        metadata_stream->priv = buf;
        stream_priv = metadata_stream;
        metadata_stream->transport = channel->transport;
+       mutex_init(&metadata_stream->lock);
 
        /*
         * Since life-time of metadata cache differs from that of
This page took 0.022975 seconds and 4 git commands to generate.