Fix: coherent state not changed atomically with metadata written
[lttng-modules.git] / lttng-events.h
index 2ee5fdcff7772d2e6d9912f179b54a14aaa7a3dd..a36a312ccb5a3e61c67d70a33bc22faf8327c8f6 100644 (file)
@@ -549,7 +549,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.023306 seconds and 4 git commands to generate.