Fix: coherent state not changed atomically with metadata written
[lttng-modules.git] / include / lttng / events.h
index 605a48a5d3bdd16c7023678797ddefa0ae48b77f..4c376b395da8f9e22769ef5e17176aa23321d254 100644 (file)
@@ -530,7 +530,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.02404 seconds and 4 git commands to generate.