Fix: coherent state not changed atomically with metadata written
[lttng-modules.git] / lttng-events.h
index 2c6df40a7b7b328140a451c00cdcc3115ca9e598..9ab087be6b666e0ac788edf4c721d7b6124444c6 100644 (file)
@@ -527,7 +527,7 @@ struct lttng_metadata_cache {
        char *data;                     /* Metadata cache */
        unsigned int cache_alloc;       /* Metadata allocated size (bytes) */
        unsigned int metadata_written;  /* Number of bytes written in metadata cache */
-       int producing;                  /* Metadata being produced (incomplete) */
+       atomic_t producing;             /* Metadata being produced (incomplete) */
        struct kref refcount;           /* Metadata cache usage */
        struct list_head metadata_stream;       /* Metadata stream list */
        uuid_le uuid;                   /* Trace session unique ID (copy) */
This page took 0.023467 seconds and 4 git commands to generate.