Fix iodepth_batch=0
[fio.git] / iolog.c
diff --git a/iolog.c b/iolog.c
index d9a17a5bcc44537778aa646c0b731a3443fe77ee..9391507940112d372c644c6180575a7a4e523398 100644 (file)
--- a/iolog.c
+++ b/iolog.c
@@ -604,7 +604,7 @@ void setup_log(struct io_log **log, struct log_params *p,
        if (l->log_gz && !p->td)
                l->log_gz = 0;
        else if (l->log_gz || l->log_gz_store) {
-               pthread_mutex_init(&l->chunk_lock, NULL);
+               mutex_init_pshared(&l->chunk_lock);
                p->td->flags |= TD_F_COMPRESS_LOG;
        }