On Thu, May 11, 2017 at 04:42:08PM +0200, Paolo Bonzini wrote: > diff --git a/block/accounting.c b/block/accounting.c > index 0429e31c9f..85890e4fe5 100644 > --- a/block/accounting.c > +++ b/block/accounting.c > @@ -35,6 +35,7 @@ static const int qtest_latency_ns = NANOSECONDS_PER_SECOND / 1000; > void block_acct_init(BlockAcctStats *stats, bool account_invalid, > bool account_failed) > { > + qemu_mutex_init(&stats->spin); Only if you respin this series: s/spin/lock/ (It's no longer a spinlock.)