]> git.proxmox.com Git - mirror_qemu.git/blobdiff - util/qemu-coroutine-lock.c
coroutine-lock: Store the coroutine in the CoWaitRecord only once
[mirror_qemu.git] / util / qemu-coroutine-lock.c
index 5816bf890094d4e87f72808abe0631a0cd5fb26f..eb73cf11dccc2d9acee96f8bd41fa972ad532bc8 100644 (file)
@@ -204,7 +204,6 @@ static void coroutine_fn qemu_co_mutex_lock_slowpath(AioContext *ctx,
     unsigned old_handoff;
 
     trace_qemu_co_mutex_lock_entry(mutex, self);
-    w.co = self;
     push_waiter(mutex, &w);
 
     /* This is the "Responsibility Hand-Off" protocol; a lock() picks from